Gcc 링크 걸때...
Compiling Gate.cc ...
Using granular libraries ...
Linking Gate ...
/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3'
/usr/lib/libGLU.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/libGLU.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4'
/usr/lib/libGLU.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3'
/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/lib/libGLU.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3'
/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/lib/libGLU.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/libGLU.so: undefined reference to `operator new[](unsigned int)@GLIBCXX_3.4'
collect2: ld returned 1 exit status
make: *** [bin/Linux-g++/Gate] Error 1
이라는 메시지와 함께 오류가 발생합니다.
어떻게 해야하는지 방법을 알려주세요
감사합니다.
-lstdc++ 옵션 추가하세여
원래 g++로 하면 기본적으로 추가되지만
때에 따라선 수동으로 해ㅑ야 할 때도 있습니다
즐린
댓글 달기