Author Topic: How do I use VC9 with Code::Blocks ?  (Read 4303 times)

Offline Green::horn

  • Multiple posting newcomer
  • *
  • Posts: 12
How do I use VC9 with Code::Blocks ?
« on: August 15, 2008, 08:22:24 pm »
Moin,

I have trouble  if I want to compile code with VC9 in Code::Blocks.

The console output lists hundreds of warnings and errors.

The most displayed output is: warning C4820, warning C4648, warning C4668 ...
The output looks like this:
"<unnamed-tag>": 4 Bytes Abstand hinter Datenmember  "<unnamed-tag>::DecreaseTime" hinzugefgt.|

The errors come from the include files.

If I compile the same project in Visual Studio 2008 Express I get no errors, no warnings !

I think it's maybe because VC9 compiles default in Unicode, could it be true ?

So, please, could somebody tell me how to configure VC9 in Code::Blocks ?
Currently I have the default settings of Code::Blocks for cl.exe ...

Thanks for any reply.

EDIT:
Sorry for wasting your time, I've got it.
I've set the settings back by clicking the 'Reset defaults' button and now it's OK.
Hmmm, maybe I was too drunk last  session ;)


Greetz
Greenhorn
« Last Edit: August 15, 2008, 08:44:00 pm by Green::horn »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: How do I use VC9 with Code::Blocks ?
« Reply #1 on: August 16, 2008, 01:38:44 pm »
"<unnamed-tag>": 4 Bytes Abstand hinter Datenmember  "<unnamed-tag>::DecreaseTime" hinzugefgt.
For those unable to read German, it says "added 4 bytes of padding after <unnamed-tag>::DecreaseTime".

This also explains what it is, it is a diagnostic warning. Please either turn off "show all warnings" or consult your compiler's manual to find out how to disable this particular warning via commmandline, or add a #pragma disable to your files (also, see your compiler's manual).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."