Hi, In this week I have a blocker in the writing test is linking library of QQ protocol to the test library. I am working on the same since last week. I try to google but didn't get a ny good result. When running the command '*make*' after writing the test, it give the error like this :
*/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' CMakeFiles/qqcrypttest.dir/qqcrypttest.cpp.o: In function `QQCryptTest::CryptTest()': qqcrypttest.cpp:(.text+0x243e): undefined reference to `TEA::encipher(unsigned int*, unsigned int const*, unsigned int*)' qqcrypttest.cpp:(.text+0x2455): undefined reference to `TEA::decipher(unsigned int*, unsigned int const*, unsigned int*)' collect2: error: ld returned 1 exit status tests/protocols/qq/CMakeFiles/qqcrypttest.dir/build.make:120: recipe for target 'tests/protocols/qq/qqcrypttest' failed make[2]: *** [tests/protocols/qq/qqcrypttest] Error 1 CMakeFiles/Makefile2:6872: recipe for target 'tests/protocols/qq/CMakeFiles/qqcrypttest.dir/all' failed make[1]: *** [tests/protocols/qq/CMakeFiles/qqcrypttest.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2* L ink to file: - test/protocol/qq/CMakeLists.txt <https://paste.kde.org/p4wgnneua> - change is done in the kopete/protocols/qq/CMakeLists.txt <https://paste.kde.org/pykp5k3w7> , output of command git diff - test header file qqcrypttest.h <https://paste.kde.org/puuhrchye> - test file qqcrypttest.cpp <https://paste.kde.org/pwstszknv> M y question is - how to make kopete_qq library visible in the test namespace? Please help. Regards, Himanshu Vishwakarma