This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined symbol
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Subject: undefined symbol
- From: "Puneet Singhal" <puneet at opussoft dot com>
- Date: Wed, 23 May 2001 15:33:59 +0530
Hi all
I have a typical UNDEFINED SYMBOL prob over here. Here is the situation:
1. I have a cpp proggy calling a function not defined locally called
connect_oracle.
2. When I do nm of the .o file of this .cpp file, the name of the symbol I
get is
connect_oracle__Fv and not connect_oracle.
3. This fn is defined in a library made of c sources. When I do nm of this
lib
the symbol is defined as connect_oracle.
4. Even though I give the full path of this library at the time of linking,
the linker does not
resolve this symbol from the library.
I cannot understand this behavior of the linker.
Any pointers
TIA,
Victor
*********************************************
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
Unix is user-friendly (it only choose its friends carefully)
----------------------------------------------------------------------------
----
It will be a long time before you hear me praise NT or any other MS product.
I believe that Gates and his empire have done more to lower the standards of
our society than anything else in my lifetime. If my product had the same
quality as theirs, airplanes would be falling out of the sky hourly.
-Robert Schindler, a mechanical engineer
*********************************************