Author Topic: Code::Blocks with MSVC 6 and MS VC 2005  (Read 5015 times)

Shadow Eater

  • Guest
Code::Blocks with MSVC 6 and MS VC 2005
« on: June 21, 2006, 09:12:56 am »
Hi :),

my name is Shadow Eater and this is the first time i visit this  :Dgreat forum!
I'm new to Code::Blocks, till now i used it only with GNU GCC Compiler.
But now i want to use VC6 and VC2005!
Do you know how i can do this ?
I mean in Build ->>Compiler Options there is no VC 6 and VC 2005 :!: :!: :!:
Is there a Tutorial or can you give me a step by step tut ?

Many Thanx :) :) :)

Shadow Eater


Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Code::Blocks with MSVC 6 and MS VC 2005
« Reply #1 on: June 21, 2006, 09:23:19 am »
first : make sure you are using a nightly build ( and not RC2)

in the compiler options you can choose as compiler :
  - Microsoft Visual C++ Toolkit 2003
  - Microsoft Visual C++ 2005

It is the second one you want. MSVC6 is not supported. Just a personal note on this : get rid of that one, it is bad, totally not standard compliant (consider the following code)
Code
for( int idx = 0; idx < 5; ++idx)
{
  ; // do stuf
}
for( int idx = 0; idx < 15; ++idx)
{
  ; // do other stuf
}

the scope does not terminate of the idx, it's scope should be the for loop.
Ok, this changed to C++ in 1998 and MsVC6 was released in 1998, well we know M$ was always visionairy ;-)

It was not fixed through a service pack for MsVC6 because existing code could break (bad code like this )
Code
for( int idx = 0; idx < 5; ++idx)
{
  ; // do stuf
}
for( idx = 0; idx < 15; ++idx)
{
  ; // do other stuf
}

« Last Edit: June 21, 2006, 09:24:59 am by killerbot »

Shadow Eater

  • Guest
Re: Code::Blocks with MSVC 6 and MS VC 2005
« Reply #2 on: June 21, 2006, 09:31:12 am »
O.K first tx 4 your fast reply killerbot!
In the Compiler Options there wasn't Ms VC 2005 to choose!
I used the RC2 Build, now i uninstalled it, do you know where i can get a proper release ?

Thx
SE

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Code::Blocks with MSVC 6 and MS VC 2005
« Reply #3 on: June 21, 2006, 10:32:00 am »
everyday there's a new nightly at :
http://forums.codeblocks.org/index.php?board=20.0

First read on how to use/install them please.