Problem linking using static libraries

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

 



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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux