User forums > Using Code::Blocks

help with code complete, MSVS and a minor bug I've found

<< < (3/3)

takeshimiya:

--- Quote from: neil on February 24, 2006, 04:11:11 pm ---any thoughts on why MSVC compiler is trying to use the profiled dll?

--- End quote ---

Yes, the MSVC compiler (not the free version) needs to add some additional paths.

Go to Settings->Compiler and debugger settings->Choose MSVC->Global compiler settings->Tab Programs->Tab Additional Paths.

On MSVC2005 (probably 2003 too), you need to add  %YOURMSVCDIR%\Common7\IDE and %YOURMSVCDIR%\Common7\Tools.

Note: Yesterday I tried to improve the AutoDetection for it, but get stuck on other problems (mainly, versions of compilers related).

mandrav:

--- Quote from: MortenMacFly on February 24, 2006, 04:36:16 pm ---
--- Quote from: mandrav on February 24, 2006, 03:35:51 pm ---
--- Quote ---Those compiler switches should not interfere with each other, so if that's the case, you have discovered a bug.
--- End quote ---
They don't interfere.

--- End quote ---
mandrav: I'm afraid neil is right

--- End quote ---

I didn't say otherwise.
But I said it's not a bug but rather a known limitation. Let me state it clearer:

"Compiler options are not automatically converted when switching between compilers. This is a known limitation."

MortenMacFly:

--- Quote from: mandrav on February 24, 2006, 05:53:01 pm ---"Compiler options are not automatically converted when switching between compilers. This is a known limitation."

--- End quote ---
Alright, got it. Sorry for the misunderstanding. :oops:
Morten.

Edit: On second thoughts: Simply making 2 targets - one for GCC and one for MSVCToolkit avoids this and makes more sense anyway if a project shall compile with both compilers... So it's maybe not even a limitation but a question of design/setup...

neil:
thanks all, why didn't I discover CodeBlocks earlier :)


--- Quote ---But I said it's not a bug but rather a known limitation.
--- End quote ---
Well, if changing a setting in one compiler (/MD for MSVC) makes it impossible to compile for another (mingw) even if you subsequently turn off the flag (/MD for MSVC) then I would call that a bug.

All that's left now is to get the context dropdown to work and I'll be as happy as Larry ;)

Navigation

[0] Message Index

[*] Previous page

Go to full version