[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LUA



> From: Bart Duchesne <bduc@xxxxxxx.com>
> Date: 05 Feb 2002 14:22:28 +0100

> I now have a .so and .a file.
> But when the linker wants to link with it I get an error concerning
> underscores in the apps .o and no underscores in the .so !!??!!

> gcc-cris -O2 -ansi -pedantic -Wall -I../../include     -D_GNU_SOURCE -D_GNU=
> _SOURCE -D_REENTRANT   -c -o lua.o lua.c
> gcc-cris -mlinux -o ../../bin/lua  lua.o -L../../lib -llua -llualib -lm
> /usr/local/cris/lib/gcc-lib/cris/2.96/rld-cris: lua.o: uses _-prefixed symb=
> ols, but writing file with non-prefixed symbols
> Bad value: failed to merge target specific data of file lua.o

Compile and link *all* files with -mlinux.

I think the best way to not miss any cases is to put "gcc-cris
-mlinux" in CC, not just "gcc-cris".

brgds, H-P