Author Topic: Can Auto Detect Compiler be turned off?  (Read 3498 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7180
    • My Best Post
Can Auto Detect Compiler be turned off?
« 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mariocup

  • Developer
  • Lives here!
  • *****
  • Posts: 586
Re: Can Auto Detect Compiler be turned off?
« Reply #1 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.


Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7254
Re: Can Auto Detect Compiler be turned off?
« Reply #2 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 ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7180
    • My Best Post
Re: Can Auto Detect Compiler be turned off?
« Reply #3 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.

« Last Edit: May 19, 2009, 08:06:24 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org