gcc/ g++ Linking Issues
Johnsy George
johnsy@spsoftindia.com
Tue Jan 6 19:33:00 GMT 2004
Hi,
I'm having a problem while linking a dynamic library which was created using
gcc
with a .cpp file using the g++ compiler.Each time I link I get an error of
undefined symbols.
Here is the command :
For creating dynamic library I use:
gcc helloworld.c -dynamic helloworld
#this creates a helloworld dynamic library.
Here's the command to link:
g++ hello.cpp -lhelloworld
error : undefined symbol printhello
Here helloworld is a library in which a function called printhello() is
implemented which is
used by hello.cpp.
Please let me know if you have any suggesstions.
johnsy
More information about the Gcc-help
mailing list