Hi TDragon,
thank you for your answer.
LOG:
-------------- Build: Release in test ---------------
link.exe /nologo /subsystem:windows /LIBPATH:D:\wxWidgets2.8\lib\vc_lib /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib" /LIBPATH:D:\wxWidgets2.8 /LIBPATH:D:\wxWidgets2.8\lib\vc_dll /LIBPATH:D:\wxWidgets2.8\lib\vc_lib /out:bin\Release\test.exe msvcrt.lib wxmsw28u.lib wxpng.lib wxjpeg.lib wxtiff.lib wxzlib.lib winmm.lib rpcrt4.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comctl32.lib wsock32.lib odbc32.lib obj\Release\testApp.obj obj\Release\testMain.obj obj\Release\resource.res /NODEFAULTLIB /INCREMENTAL:NO /SUBSYSTEM:WINDOWS
testApp.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)
testMain.obj : error LNK2019: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB) referenced in function "protected: void __thiscall wxStringBase::Init(void)" (?Init@wxStringBase@@IAEXXZ)
testMain.obj : error LNK2019: unresolved external symbol "protected: bool __thiscall wxStringBase::ConcatSelf(unsigned int,wchar_t const *,unsigned int)" (?ConcatSelf@wxStringBase@@IAE_NIPB_WI@Z) referenced in function "protected: bool __thiscall wxStringBase::ConcatSelf(unsigned int,wchar_t const *)" (?ConcatSelf@wxStringBase@@IAE_NIPB_W@Z)
testMain.obj : error LNK2019: unresolved external symbol "protected: void __thiscall wxStringBase::InitWith(wchar_t const *,unsigned int,unsigned int)" (?InitWith@wxStringBase@@IAEXPB_WII@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(wchar_t const *)" (??0wxStringBase@@QAE@PB_W@Z)
wxpng.lib(wxpng_pngrutil.obj) : error LNK2019: unresolved external symbol __iob referenced in function _png_handle_pCAL
wxjpeg.lib(wxjpeg_jerror.obj) : error LNK2001: unresolved external symbol __iob
wxmsw28u.lib(monolib_log.obj) : error LNK2001: unresolved external symbol __iob
wxmsw28u.lib(monolib_msgout.obj) : error LNK2001: unresolved external symbol __iob
wxpng.lib(wxpng_pngerror.obj) : error LNK2001: unresolved external symbol __iob
wxpng.lib(wxpng_pngwutil.obj) : error LNK2001: unresolved external symbol __iob
wxmsw28u.lib(monolib_stopwatch.obj) : error LNK2019: unresolved external symbol _ftime referenced in function "class wxLongLongNative __cdecl wxGetLocalTimeMillis(void)" (?wxGetLocalTimeMillis@@YA?AVwxLongLongNative@@XZ)
wxmsw28u.lib(monolib_datetime.obj) : error LNK2019: unresolved external symbol _timezone referenced in function "int __cdecl GetTimeZone(void)" (?GetTimeZone@@YAHXZ)
wxmsw28u.lib(monolib_strconv.obj) : error LNK2019: unresolved external symbol _strdup referenced in function "public: __thiscall wxCharBuffer::wxCharBuffer(char const *)" (??0wxCharBuffer@@QAE@PBD@Z)
wxmsw28u.lib(monolib_xpmdecod.obj) : error LNK2001: unresolved external symbol _strdup
wxmsw28u.lib(monolib_textfile.obj) : error LNK2001: unresolved external symbol _strdup
bin\Release\test.exe : fatal error LNK1120: 8 unresolved externals
Process terminated with status 1120 (0 minutes, 5 seconds)
16 errors, 0 warnings
All right, now I see what I missed earlier. You can see what's happening in the link.exe command line from the build log:
link.exe [...] /LIBPATH:D:\wxWidgets2.8\lib\vc_lib [...] /LIBPATH:D:\wxWidgets2.8 /LIBPATH:D:\wxWidgets2.8\lib\vc_dll /LIBPATH:D:\wxWidgets2.8\lib\vc_lib [...]
You've got library search directories for both the static version (vc_lib) and the DLL version (vc_dll) in your search path, so the compiler is picking the wrong wxmsw28u.lib to go with your configuration. Re-run the wxWidgets project wizard and don't add any extraneous search paths. If that's not an option, remove any inappropriate paths. Also, make sure that no wxWidgets paths are in your global (not project specific) compiler settings.