afshin.jafari Posted August 14, 2014 Share Posted August 14, 2014 Hi, I'm trying to import Unigine into a C++ MFC library with CLR enabled option. in the library I have a usercontrol class inheriting System::Windows::Forms::Control. I can include <Unigine.h> in the header or cpp file but as soon as I add #include <UnigineApp.h> I receive following errors in compile: Error 1 error LNK2001: unresolved external symbol "public: virtual void __thiscall MFCLibrary1::Unigine::App::setClipboard(char const *)" (?setClipboard@App@Unigine@MFCLibrary1@@UAEXPBD@Z) D:\Unigine Projects\MFCLibrary1\MyUserControl.obj MFCLibrary1 Error 2 error LNK2001: unresolved external symbol "public: virtual char const * __thiscall MFCLibrary1::Unigine::App::getClipboard(void)" (?getClipboard@App@Unigine@MFCLibrary1@@UAEPBDXZ) D:\Unigine Projects\MFCLibrary1\MyUserControl.obj MFCLibrary1 Error 3 error LNK2001: unresolved external symbol "public: virtual int __thiscall MFCLibrary1::Unigine::App::dialogMessage(char const *,char const *)" (?dialogMessage@App@Unigine@MFCLibrary1@@UAEHPBD0@Z) D:\Unigine Projects\MFCLibrary1\MyUserControl.obj MFCLibrary1 Error 4 error LNK2001: unresolved external symbol "public: virtual int __thiscall MFCLibrary1::Unigine::App::dialogFile(char const *,char *,int)" (?dialogFile@App@Unigine@MFCLibrary1@@UAEHPBDPADH@Z) D:\Unigine Projects\MFCLibrary1\MyUserControl.obj MFCLibrary1 Error 5 error LNK2001: unresolved external symbol "public: virtual __thiscall MFCLibrary1::Unigine::App::~App(void)" (??1App@Unigine@MFCLibrary1@@$$FUAE@XZ) D:\Documents\Unigine Projects\MFCLibrary1\MyUserControl.obj MFCLibrary1 I receive the same errors when I add include to D3D9AppMFC.h Any help will be appreciated. Link to comment
afshin.jafari Posted August 15, 2014 Author Share Posted August 15, 2014 Please ignore the question! I noticed I've put the include inside the namespace block! hope no one has reached here! Link to comment
Recommended Posts