Platform: Windows7 32bit
Compiler Visual Studio 2010/Windows SDK
Codeblocks version 10.5
wxWidgets-2.8.12
I recently installed/setup C::B to use VS2010 as my compilier/linker. I can sucessfully create/run a win32 console app. I can also create/run a win32GUI app,but when I try to create a basic wxWidget app(creating the wxsmith tutorial app). I get the following linker error:
LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'
I have setup my wx global variable to point to my installation of wxWidgets - C:\wxWidgets-2.8.12 and I've also setup the wx/Lib to point to C:\wxWidgets-2.8.12\lib\vc_lib. My linker is also set up to point to that library location.
The following is the contents of my build log. Any assistance is greatly appreciated.
-------------- Build: Release in Tutorial ---------------
cl.exe /nologo /DWIN32 /D__WIN32__ /D__WXMSW__ /D_WINDOWS /TP /Gd /GF /EHsc /D_CRT_SECURE_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Zc:wchar_t /D_VC80_UPGRADE=0x0600 /W3 /Ox /DNDEBUG /MD /O2 /Ob1 /IC:\wxWidgets-2.8.12\include /IC:\wxWidgets-2.8.12\contrib\include /I\msw /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /I"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include" /c TutorialMain.cpp /Foobj\Release\TutorialMain.obj
TutorialMain.cpp
C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /IC:\wxWidgets-2.8.12\include /I\msw /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /I"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include" -foobj\Release\resource.res resource.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe /nologo /DWIN32 /D__WIN32__ /D__WXMSW__ /D_WINDOWS /TP /Gd /GF /EHsc /D_CRT_SECURE_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Zc:wchar_t /D_VC80_UPGRADE=0x0600 /W3 /Ox /DNDEBUG /MD /O2 /Ob1 /IC:\wxWidgets-2.8.12\include /IC:\wxWidgets-2.8.12\contrib\include /I\msw /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /I"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include" /c TutorialApp.cpp /Foobj\Release\TutorialApp.obj
TutorialApp.cpp
link.exe /nologo /subsystem:windows /LIBPATH: /LIBPATH:"C:\Program Files\Microsoft Visual Studio 10.0\VC\lib" /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib" /LIBPATH:C:\wxWidgets-2.8.12\lib\vc_lib /out:bin\Release\Tutorial.exe msvcrt.lib wxmsw_core.lib wxbase.lib wxpng.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\TutorialMain.obj obj\Release\TutorialApp.obj obj\Release\resource.res /NODEFAULTLIB:libcmt.lib /INCREMENTAL:NO /SUBSYSTEM:WINDOWS
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'
Process terminated with status 1146 (0 minutes, 39 seconds)
1 errors, 0 warnings
If you look the first line of the Linker output the first /LIBPATH directive has no argruments. I don't know where that is comming from. Please help. Thanks in advance.
pabon