supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Can't build debug-build: undefined reference to `MemoryLeaks::checkForLeaks()' #481

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: aapoaapo

Ubuntu 11.04 amd64 Irrlicht svn 3843 with NDEBUG=1 STK svn 10036

cmake .. -DCMAKE_BUILD_TYPE=Debug make

Linking CXX executable bin/supertuxkart CMakeFiles/supertuxkart.dir/src/main.cpp.o: In function main': supertuxkart_svn/src/main.cpp:1239: undefined reference toMemoryLeaks::checkForLeaks()' CMakeFiles/supertuxkart.dir/src/main.cpp.o: In function AbstractLeakCheck': supertuxkart_svn/src/utils/leak_check.hpp:54: undefined reference toMemoryLeaks::MyObject::MyObject(MemoryLeaks::AbstractLeakCheck_)' supertuxkart_svn/src/utils/leakcheck.hpp:55: undefined reference to `MemoryLeaks::addObj(MemoryLeaks::MyObject)' CMakeFiles/supertuxkart.dir/src/main.cpp.o: In function ~AbstractLeakCheck': supertuxkart_svn/src/utils/leak_check.hpp:66: undefined reference toMemoryLeaks::removeObj(MemoryLeaks::MyObject_)' CMakeFiles/supertuxkart.dir/src/guiengine/engine.cpp.o: In function AbstractLeakCheck': supertuxkart_svn/src/utils/leak_check.hpp:60: undefined reference toMemoryLeaks::MyObject::MyObject(MemoryLeaks::AbstractLeakCheck_)' supertuxkart_svn/src/utils/leakcheck.hpp:61: undefined reference to `MemoryLeaks::addObj(MemoryLeaks::MyObject)' collect2: ld returned 1 exit status make[* bin/supertuxkart Error 1 make[* CMakeFiles/supertuxkart.dir/all Error 2 make: _\ [all] Error 2

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/481

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Fixed in r10038, thanks for the report!