try:
1- add "-lgdi32" to Build Options > Linker Settings - other linker options
or,
2- follow Bazzy's direction but add gdi32.lib or libgdi32.a manually, note that gdi32.lib only come with windows sdk
I try the way of Bazzy again, it works without enable -std=c++0x
How could I make it work with the -std=c++0x command?
I don't know how to key in the command from the command window or
make it work with code_block after adding -std=c++0x
I rebuild it already,this is the error message error: '_fileno' was not declared in this scope
same as the first post since I enabled the -std=c++0xoption at that time
How did you enable -std=c++0x ? ( with C::B checkbox or typing it in Other Options )
Is the default g++ the same that C::B uses? ( you can check Compiler and Debugger > Toolchain Executables )