mingw32-g++.exe -pedantic -ID:\CBlocks\include -c main.cpp -o .objs\main.o
In file included from D:/CBlocks/include/SDL/SDL_main.h:59,
from D:/CBlocks/include/SDL/SDL.h:33,
from main.cpp:2
D:/CBlocks/include/SDL/SDL_types.h:64: error: ISO C++ does not support `long long'
#include <stdio.h>
int main() { }
Greetz.
I would to compile SDL template from Code::Blocks 1.0 rc2 with bundled MinGW and I have some strange errors:Codemingw32-g++.exe -pedantic -ID:\CBlocks\include -c main.cpp -o .objs\main.o
In file included from D:/CBlocks/include/SDL/SDL_main.h:59,
from D:/CBlocks/include/SDL/SDL.h:33,
from main.cpp:2
D:/CBlocks/include/SDL/SDL_types.h:64: error: ISO C++ does not support `long long'
etc. All according to 'long long' type [is there this type in ANY C/C++ language dialect? :| ]
BTW I have a proposition to allow copying selected text possibility in build and compiler logs windows [small improvement ;) ]
This means that I can't compile code using SDL as ISO C++ Standard compliant?Pretty much, but only because it uses long long which isn't in the ISO C++ Standard. This basically happened because C++ was standardized in '98, but the latest C standard (which added long long) was published in '99. The C++ standard is therefoer based on an older version of C ('89 I think, not sure).
Not good :\
But thanks for answer, it really helped.
BTW Maybe it's a bug also, but under Win2000 Professional I have black rectangular areas in many icons in Code::Blocks. In earlier versions they're isn't there.This indeed happens only on Win2k. It seems it doesn't handle alpha (partial) transparency all that well, and those icons use alpha. The fix is pretty simple though: use non-alpha-using icons ;). Since I'm also using Win2k I even have them right here. Open the attachment to this post and unzip to ${CB_DIR}\share\CodeBlocks\images (overwrite all, of course). Restart Code::Blocks and presto :D.
And another proposition: it would be nice looking if toolbars were "flat-style" ;) and without additional disturbing frames around. Is it possible to do?I think someone mentioned this isn't possible with wxDockIt (the library that currently provides the toolbars) last time this was asked.
Yes, long long s both in C99 and in the GNU C++ dialect. However, you're compiling C++ source files (so no C99) with -pedantic specified (so no GNU extensions). Either rename your source to main.c and continue in C (wouldn't reccomend it ;)) or remove -pedantic from the compiler options. That should fix it.
Those flags I guess override any and all "project setting" compiler flags?Yes and no. Compiler flags are cumulative in the order Compiler -> Project -> Target.