wxWidgets Compile Option:
UNICODE=1 SHARED=1 VENDOR=xxx MONOLITHIC=1Visual Studio x64/Release Project Properties:
C/C++ > General > Additional Include Directories:"C:\wxWidgets-2.9.4\lib\vc_x64_dll\mswu";
"C:\wxWidgets-2.9.4\include";
C/C++ > Preprocessor > Preprocessor Definitions:
WXUSINGDLL; _UNICODE
Linker > General > Additional Library Directories:
"C:\wxWidgets-2.9.4\lib\vc_x64_dll"
Linker > Input > Additional Dependencies:
"wxmsw29u.lib"
Hints:
Include path 記得要設定到對的path, 因為 setup.h 在很多個目錄都可能會出現,在我的環境裡我要使用的是 "C:\wxWidgets-2.9.4\lib\vc_x64_dll\mswu\wx\setup.h",如果設錯的會,compiler 會抱怨找不到 wxbase294.lib ... 但這個檔案應該是錯誤的,他真的不存在,選到正確的 path 後就不會該 error 了如果沒有設定正確的 Additional Dependencies 會出現 unresolved external symbol 如下的 compile error....
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl wxString::~wxString(void)" (__imp_??1wxString@@QEAA@XZ) referenced in function "public: void * __cdecl wxString::`vector deleting destructor'(unsigned int)" (??_EwxString@@QEAAPEAXI@Z)
留言
張貼留言