Problem linking using static libraries

Ali Majdzadeh kohbanani1360@yahoo.com
Sat Aug 13 13:58:00 GMT 2005


Hello all
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
the command:
$ gcc -o app app.o -L. -ltest -I.
the program terminates with the segmentation fault
error.
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?

Regards
Ali

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Gcc-help mailing list