matt wrote:
> Executing make...
> make.exe -f "C:\Dev-Cpp\Makefile.win" all
> gcc.exe votest.o -o "votest.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/lib"
> -s -mwindows lib/libm.a libtestx.a
> votest.o(.text+0x3a):votest.c: undefined reference to `mysub'
I have no idea at all. Are you sure the library is correctly compiled?
Is the library stripped? It tends to make the library unusable if it is
stripped. Apart from that, this should work. If you are an experienced
UNIX programmer, then it will be no problem for you to write the program
with a text editor, and compile it by hand, with the same options that
Dev-C++ uses. Then you can tune it, as long as you get the differences,
that makes the error. Your example compiled perfectly for me.
--
Greetings,
Balázs
|