Hello. I've been given a private source of a final OS4 version of software which includes the main program and support libraries. Although it once compiled on OS4 the final version I received needed many changes to makefiles and missing or incomplete headers files just to compile. After some weeks work I finally got to the point where I could compile the main code but am now stuck in a support library.
All the .o files are compiled fine. But it keeps breaking when turning it into a .library file. It keeps referencing INewLib but I can see no reference to it in the code. I've gone through the headers and support files and the only link to CLib I Can see is include files. Would including stdio.h trigger it off even of no functioins were used?
This is the sort of source I hate. One that once compiled but changes to the code or a SDK update broke it compiling and it can ages reinventing the wheel, spending work on it without progrssing the code anywhere, going backwards really. Anyway this is the compiler output breaking:
gcc -nostartfiles -o Support.library Support.o -lm
/SDK/newlib/lib/libc.a(stub___NewlibCall.o): In function `__NewlibCall':
(.text+0x2): undefined reference to `INewlib'
/SDK/newlib/lib/libc.a(stub___NewlibCall.o): In function `__NewlibCall':
(.text+0x6): undefined reference to `INewlib'
make: *** [Support] Error 1
I'm sure this is something simple that will be solved in less time than it took to type this. :-D
Fri, 2014-08-22 11:49
#1
Failing to create library file from object at last step