I used code::blocks with mingw without any problems, but recently I had to use it with microsoft visual c++ toolkit and there is one problem. I set up everything for microsoft compiler as It is written in tutorial, but when I click compile, the code::blocks uses the gcc compiler. In build->compiler options I selected microsoft compiler. The installation directory is correct in programs tab, build log looks like below
Project : wxWidgets application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Dev-Cpp\Projects\smieci2\
---------------------------------------------------------------------------Switching to target: default
Compiling: myframe.cpp
myframe.cpp: In constructor `myFrame::myFrame(const wxString&, const wxPoint&, const wxSize&, long int)':
myframe.cpp:12: error: `Image' undeclared (first use this function)
myframe.cpp:12: error: (Each undeclared identifier is reported only once for each function it appears in.)
myframe.cpp:12: error: expected `;' before "image"
Process terminated with status 1 (0 minutes, 27 seconds)
------------------------
Does anybody knows why? What is the solution? :shock: