Problem linking using static libraries
Sat Aug 13 13:58:00 GMT 2005
I have written some functions and have managed them
within an archive (static library).
$ ar cr libtest.a test.o
I can compile my source which uses this library
without any problem,but when I run my binary file with
$ gcc -o app app.o -L. -ltest -I.
the program terminates with the segmentation fault
I also have put the functions prototypes in a header
file calles header.h and I have included that in my
source and in my compilation command.
Does anyone have any idea about this problem?
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Gcc-help