Hello,
when I found this nice IDE, I began to reactivate my old borland free commandline tools, downloaded the code::blocks 1.0-beta5 and run the installation procedure. code::blocks detects my borland bcc32 installation and I could try my first hello world program. but what I got was ... grrr!
Now, what I found out. Everytime I create a "New Project" the code::blocks IDE generates a "Default target" for GCC, though, I did not have installed MinGW. So I had to change the compiler within the "Build options". Did I made something wrong while installation of code::blocks? I set borland compiler to default!
When trying to compile console applications, you will get a lot of error messages. Because the linker options are not set correctly.
windows gui applications:
$linker -aa $libs c0w32 cw32.lib import32.lib ...
console applications:
$linker -ap $libs c0x32 cw32.lib import32.lib
The difference is just the x instead of the w within the object file and the parameter -ap instead of -aa!
Now everythings compiles fine, but which is the best way to have two different linker settings, for console and windows applications? I made a copy of the whole compiler settings and renamed it to Borland Console Applications, but I think there is perhaps a better way?
Thanks,
Stefan