Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: stahta01 on May 18, 2009, 11:38:36 pm

Title: Can Auto Detect Compiler be turned off?
Post by: stahta01 on May 18, 2009, 11:38:36 pm
Can Auto Detect Compiler be turned off?

I use both MSVC8(2005) and MSVC9(2008) and C::B likes to put both paths in the same Compiler settings.
Current Nightly.

Tim S
Title: Re: Can Auto Detect Compiler be turned off?
Post by: mariocup on May 19, 2009, 01:23:31 pm
Hi,

I do not know if this is a option for you, but you could use the following workaround. Add an environment variable e.b. MSVC in Settings->Environment and create two envar sets. In one set MSVC points to MSVC8 and in the other set to MSCV9. Now use this variable within the compiler executable configuration  $(MSVC).

If you open properties of a CB project and select the tab you can choose the env-set and so you can use both compilers.

Title: Re: Can Auto Detect Compiler be turned off?
Post by: Jenna on May 19, 2009, 01:27:44 pm
Normally autodetection should not be a problem as far as I know.

The autodetection popup only appears, if you have a compiler with an empty master path.

If you set up one compiler and copy it and set up the second correctly it should work.

Or does the code for using msvc-compilers work differently from the gcc/MinGW-code ?
Title: Re: Can Auto Detect Compiler be turned off?
Post by: stahta01 on May 19, 2009, 06:46:36 pm
Normally autodetection should not be a problem as far as I know.

The autodetection popup only appears, if you have a compiler with an empty master path.

If you set up one compiler and copy it and set up the second correctly it should work.

Or does the code for using msvc-compilers work differently from the gcc/MinGW-code ?

Not true for MSVC8 and 9 One of my Compilers must have had an empty path; not sure which one.