Re: Beginner trouble linking

2003-02-09 Thread Ajith C
Helo, Using the -c flag, you are not building a library (.so or .a). It is an object module (.o). Use gcc -shared -Wl,-soname,your_soname \ -o library_name file_list library_list or gcc -fPIC -g -c -Wall a.c gcc -fPIC -g -c -Wall b.c gcc -shared -Wl,-soname,libmystuff.so.1 \ -o libm

Beginner trouble linking

2003-02-09 Thread exits funnel
Hello, I'm new to Linux/Unix development and I"m having a bit of trouble with something quite basic. I've written a simple test library located in ex7Stack.h/ex7Stack.cpp. I am able to build the library as follows: g++ -c -o ex7Stack ex7Stack.cpp I then write a small test program located in ex