Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Green::horn on August 15, 2008, 08:22:24 pm

Title: How do I use VC9 with Code::Blocks ?
Post by: Green::horn 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
Title: Re: How do I use VC9 with Code::Blocks ?
Post by: thomas 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).