News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Can Auto Detect Compiler be turned off?

Started by stahta01, May 18, 2009, 11:38:36 PM

Previous topic - Next topic

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mariocup

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.


Jenna

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 ?

stahta01

#3
Quote from: jens 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 ?

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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]