Author Topic: How do I use VC++ 2010 in CB ?  (Read 4127 times)

Offline mahaju

  • Multiple posting newcomer
  • *
  • Posts: 25
How do I use VC++ 2010 in CB ?
« on: September 04, 2012, 03:33:41 am »
Hi
I recently installed VC+ 2010
Is it possible to set up CodeBlocks so that I can use VC++ code and compilers in Codeblocks as I would use it in VC++?
Also, I am new to VC++ and the compiler messages it shows when I compile files seem quite complicated to me
As I am migrating from CB and MinGW to Vc++, the messages seem somewhat foreign
This might be a stupid question, but would using VC++ from codeblocks change any of that?
I know I can set up codeblocks to show the exact MinGW command line options invoked when building a project, but when I try to do the same thing in VC++ it does not show anything I find useful nor intuitive
Also, my computer is quite slow so I am hoping using Codeblocks as my IDE would make it run faster
So is there any way to do this?

Thank you very much

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How do I use VC++ 2010 in CB ?
« Reply #1 on: September 04, 2012, 07:57:34 am »
Is it possible to set up CodeBlocks so that I can use VC++ code and compilers in Codeblocks as I would use it in VC++?
Yes, it is - I am doing it from time to time. You need to configure the compiler correctly though, including path's to system libraries and  includes. This depends on the system and where you installed VC into. Also make sure you select the right base compiler - any settings you do in the GCC compiler are not related to compiling with VC, obviously. Finally make sure you select VC in the project and target options.

Generally I guess its worth to have a look at the xml_compiler branch for you, if you are familiar with compiling C::B yourself.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mahaju

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: How do I use VC++ 2010 in CB ?
« Reply #2 on: September 04, 2012, 08:35:42 am »
I am not familiar with compiling CB
I was looking for something like a step by step guide
I do not want whatever I do to mess up either the gcc compiler settings of CB or the compiler and IDE settings of VC++