First, thanks to developers for great IDE.
Second, problem:
I'm truing to compile wxWidgets from codeblocks, using Microsoft Visual C++ Toolkit 2003 compiler. I imported project, changed secttings apporiately, etc, it mostly compiles. But:
After compiling quite many files (but not all), i get "Command execution failed..." error
I tried starting compiling again, and got that:
Project : wxWindows
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : C:\wxWindows-2.4.2\src\
--------------------------------------------------------------------------------
Switching to target: default
Command execution failed...
What exactly it means, and what to do with it? Seems that it's codeblocks-related thing.
thanks again.
I finally compiled wx from commandline using make with bat file i wrote:
set WXWIN=X:\
set MSVC=C:\Program Files\Microsoft Visual C++ Toolkit 2003
set MSSDK=C:\Program Files\Microsoft SDK
set INCLUDE=%MSVC%\include;%MSSDK%\include
set LIB=%MSVC%\lib;%MSSDK%\lib
set PATH=%MSVC%\bin;%MSSDK%\bin;%MSSDK%\bin\win64;%PATH%
rem create fake drive x:
rem ntsubst x: C:\wxWindows-2.4.2
subst x: C:\wxWindows-2.4.2
x:
cd \src
rem you need to get nmake and rc from somewhere. IIRC i used ones from msvc6.0
rem nmake -f makefile.vc FINAL=1 cleanall
nmake -f makefile.vc FINAL=1 BUILD=release SHARED=1 RUNTIME_LIBS=dynamic all
rem nmake -f makefile.vc FINAL=1 BUILD=release SHARED=0 RUNTIME_LIBS=dynamic all
But i haven't sucesed to compile DLL yet, only statically linked lib. Some piece of wx documentation is missing so i don't sure how to compile DLL
Maybe i'll copypaste some compiler parameters from makefiles and try compiling it from code::blocks again. I had to do it to compile demos and samples to work with static lib.
Tried that... Looked at makefiles today, and found mistake in src/makefile.vc , it contains
cd msw
nmake -f makefile.vc FINAL=$(FINAL)
cd $(THISDIR)
and WXMAKINGDLL is not passed any further, heh.
Invoked src/msw/makefile.vc directl, got "missing delayimp.lib"... removed delayed DLL loading stuff and compiled ok. Examples works. (except always needed to remove odbc32.lib and odbccp32.lib from linker options . Have no idea why everyone link with unnecessary libs...)