User forums > Help

Different compilers per target in the same project

<< < (2/5) > >>

fabrizio.benedetti:
Here it is!

[attachment deleted by admin]

killerbot:
I will try it out tomorrow on my windows box, but the general compiler flag, does NOT hold for GCC, it only holds for MSVC

--- Code: --- <Compiler>
<Add option="/W3" />
</Compiler>

--- End code ---

killerbot:
everything works fine for me.

1) with MSVC as project compiler  [GCC even quietly ignored the /W3]
2) with GCC as the project compiler

fabrizio.benedetti:
  I removed the /W3 global option, but C::B still crashes when selecting a Build Target which has a different compiler than the one selected at project level. I expected gcc ignoring the /W3 option, but my problem is GCC not being even invoked: C::B finds the Compiler object uninitialized when building the command line, so an exception is thrown; seems that only the Compiler selected at project level is Intialized. (see my topic in the development forum)

  I can perform some more debug on my machine (yes, the exception is also thrown when running the last version from SVN). Can you give me some debug hint? Where to place breakpoints, what to check, and the likes... you might even debug yourself on my machine via some remote control, if you have some time and really want to take a look at it.  8)

killerbot:
we always want to solve crashes.

I would say try to create a clean CB install (!!(re)move your default.conf!!). Maybe somethings goes wrong towards MinGW GCC. I never heard of this issue.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version