jvcleave / ofxImGui

Use ImGui in openFrameworks
296 stars 124 forks source link

Linking error in VS2015 windows 10 64bit #12

Closed hluisi closed 8 years ago

hluisi commented 8 years ago

Getting the following linking errors with the new version on Windows 10:

1>------ Build started: Project: test, Configuration: Debug x64 ------
1>     Creating library bin\test_debug.lib and object bin\test_debug.exp
1>ofxImGui.obj : error LNK2019: unresolved external symbol "public: unsigned int __cdecl BaseEngine::loadTextureImage2D(class ofImage_<unsigned char> &)" (?loadTextureImage2D@BaseEngine@@QEAAIAEAV?$ofImage_@E@@@Z) referenced in function "public: unsigned int __cdecl ofxImGui::loadImage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?loadImage@ofxImGui@@QEAAIV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>ofxImGui.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl EngineGLFW::setup(struct ImGuiIO *)" (?setup@EngineGLFW@@UEAAXPEAUImGuiIO@@@Z)
1>ofxImGui.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl EngineGLFW::createDeviceObjects(void)" (?createDeviceObjects@EngineGLFW@@UEAA_NXZ)
1>ofxImGui.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl EngineGLFW::onKeyReleased(class ofKeyEventArgs &)" (?onKeyReleased@EngineGLFW@@UEAAXAEAVofKeyEventArgs@@@Z)
1>bin\test_debug.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
jvcleave commented 8 years ago

Can you try and remove the lines

#if !defined(TARGET_RASPBERRY_PI)

and

#endif

from EngineGLFW.h and EngineGLFW.cpp

hluisi commented 8 years ago

Nm, I needed to add the new files to the project. Everything is working fine.