Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: balrogsoft on November 26, 2011, 12:46:05 AM
-
Hi.
I want to add lua scripting to a game engine that i'm making for classic Amigas and MorphOS, but i'm having some problems linking liblua.a with SAS/C, how should be linked this type of libraries?, when i try to link my program with this library SLink says that is not a valid object file.
i'm tried to compile lua with SAS/C, but with problems also, it asks for undefined symbols like strtod, pow, floor, ... i have downloaded ixemul sdk archive with the libs and include files, but with the same problem of invalid object file.
-
If its the .a file in the aminet archive, it's an "AR" archive file. You can probably use it with gcc or amidevcpp. I've never tried to use SAS/C with non-Amiga hunk format libraries. You could also probably recompile the source with SAS/C to produce a static library in the format that SAS/C likes.
-
Hi bm07.
The problem is that i had tried to compile lua with SAS/C also, but also requires the libraries of ixemul that are in the same format that lua library. Maybe it's better solve the dependencies, and not use the ixemul library.
Thanks you.
-
It seems that ixemul isn't need finally, i linked it with "sc link" instead "slink" and it searchs the libraries automaticly, but now it asks for undefined symbols _main and __ctype.
Edited:
I have found that lua requires the liblua.a, and i don't know how to make a static library with sas/c to make my own version compatible with sas/c.