gcc/ g++ Linking Issues

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

 



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


[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