g++ - linker error cannot find symbol name in library -



g++ - linker error cannot find symbol name in library -

g++ (gcc) 4.7.2 3.7.6-201.fc18.x86_64 #1 smp mon feb 4 15:54:08 utc 2013 x86_64 x86_64 x86_64 gnu/linux fedora release 18 (spherical cow)

hello,

i compiling , having problem trying link program.

the linker error is:

/usr/bin/ld: point.o: undefined reference symbol '_znwj@@glibcxx_3.4' /usr/bin/ld: note: '_znwj@@glibcxx_3.4' defined in dso /lib/libstdc++.so.6 seek adding linker command line /lib/libstdc++.so.6: not read symbols: invalid operation collect2: error: ld returned 1 exit status

this object file point.o trying phone call function doesn't exist in libstdc++.

when seek , check if symbol name exist using readelf can't find it.

readelf --all libstdc++.so.6.0.17 | grep _znwj@@glibcxx_3.4

is because point.o looking symbol in older libstdc++ have been removed in later version?

many suggestions,

in case using gcc not g++. used work in '12, later build on different machine in '14 choked. gnu compiler has indeed changed. reply in case add

-lstdc++

onto end of linking line, error messages suggest. hth.

linker g++

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -