symao / PnPL

Perspective n Point and Line for camera pose estimation.
135 stars 47 forks source link

Building Error: undefined reference ... #3

Closed FaiScofield closed 5 years ago

FaiScofield commented 5 years ago

Got a building error, the compile output shows below:

Scanning dependencies of target demo_pnptrans
[ 16%] Building CXX object CMakeFiles/demo_pnptrans.dir/src/demo_pnptrans.cpp.o
[ 33%] Building CXX object CMakeFiles/demo_pnptrans.dir/src/pnp.cpp.o
[ 50%] Linking CXX executable demo_pnptrans
/usr/bin/ld: CMakeFiles/demo_pnptrans.dir/src/demo_pnptrans.cpp.o: undefined reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [demo_pnptrans] Error 1
make[1]: *** [CMakeFiles/demo_pnptrans.dir/all] Error 2
make: *** [all] Error 2

I found it only show up when I build it with 'clang'. However everything was ok when build with 'gcc'