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
Post a Comment