[CMake] Linking error while trying to include an external library to a CMAKE project

maaschn maaschn at web.de
Sun Apr 28 14:32:37 EDT 2013


Thank you for your reply. I didnt add the code because it is just that common
linking error which pops up. But I will show it nevertheless.

error LNK2019: unresolved external Symbol ""public: __thiscall
CInterfaceLLT::CInterfaceLLT(char const *,bool *)"
(??0CInterfaceLLT@@QAE at PBDPA_N@Z)" in Function "_main".
C:\Users\Maaschn\Desktop\TestProg\TestProg_VS10\main.obj	TestProg


this is the correspondant minimla codesnippet

#include <iostream>
#include "InterfaceLLT_2.h"
using namespace std;

int main()
{
    
	bool bLoadError;

	CInterfaceLLT* m_pLLT;

	 m_pLLT = new CInterfaceLLT("LLT.dll", &bLoadError);

	 cout << "Hello World!" << endl;



    return 0;
}




--
View this message in context: http://cmake.3232098.n2.nabble.com/Linking-error-while-trying-to-include-an-external-library-to-a-CMAKE-project-tp7584264p7584266.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list