Hi,
One of the really excellent features of Code::Blocks is the use of global variables to handle different compiler paths, library paths etc.
I have C::B projects using MSVC compiler on Windows. I have VC2008 installed. When I investigate the C::B project files I find the following in my Windows build targets
<Option compiler="msvc8" />
However, a friend wants to build the same code using his installed VC2010 compiler. The only way we got it to work was by performing a text search/replace to
<Option compiler="msvc10" />
Then all is well, except we cannot share project files (I am not going to upgrade my compiler, for various reasons).
Is there some way we can improve this, for example using global variables? We tried this
<Option compiler="$(#CPDE_COMPILER)" />
Hoping that CPDE_COMPILER would be understood as a global variable that we could set to msvc8 and msvc10 respectively. But it seems global variables are not recognised in this context?
We also tried removing the option completely (assuming our default compilers would be used), but that didn't work either.
Any Ideas how to handle this?