Author Topic: why I cannot use microsoft visual c++ toolkit 2003  (Read 4036 times)

rem

  • Guest
why I cannot use microsoft visual c++ toolkit 2003
« on: January 19, 2006, 06:35:02 pm »
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:


Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: why I cannot use microsoft visual c++ toolkit 2003
« Reply #1 on: January 19, 2006, 06:37:02 pm »
"Build->Compiler options" change the default compiler.
What you need to change is in "Project->Build options". Change the compiler for the project *and* the targets.
Be patient!
This bug will be fixed soon...

rem

  • Guest
Re: why I cannot use microsoft visual c++ toolkit 2003
« Reply #2 on: January 19, 2006, 06:52:16 pm »
Thanks a lot man. The problem is solved. See ya. :D