You are not logged in.
Error i get when compiling an openGL, bullet program. I just started getting this on both my arch computers after updating.
gcc Timer.o Ball.o main.o -I/usr/include -lGL -lGLU -lBulletCollision -lBulletDynamics -lLinearMath -I/usr/include/bullet -L/usr/lib -lglut -lX11 -o pool
/usr/bin/ld: Ball.o: undefined reference to symbol '__cxa_pure_virtual@@CXXABI_1.3'
/usr/bin/ld: note: '__cxa_pure_virtual@@CXXABI_1.3' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Offline
The error tells you what to do...
/usr/bin/ld: note: '__cxa_pure_virtual@@CXXABI_1.3' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line
Offline
Could you explain what that means?
Offline
I realised that and changed it, it's still giving a simmilar error
g++ Timer.o Ball.o main.o -I/usr/include -lGL -lGLU -lBulletCollision -lBulletDynamics -lLinearMath -I/usr/include/bullet -L/usr/lib -lglut -lX11 -o pool
/usr/bin/ld: Timer.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Last edited by seniorsassycat (2011-12-10 01:16:00)
Offline
So add the linker flag.. -lrt in this case.
Thanks, that worked, do you know why this broke? Before i ran pacman -Syu i did not need to include rt, but now i do on both systems.
Last edited by seniorsassycat (2011-12-10 01:36:19)
Offline
Read the first change with binutils-2.22:
http://sourceware.org/cgi-bin/cvsweb.cg … utils-2_22
And here is some explanation:
http://fedoraproject.org/wiki/Understan … LinkChange
Offline
hate to revive this, but I am having the same error installing mixxx-bzr from the AUR. How / where do i add that '-lrt' flag?
Offline