>>so i decided that i'm fed up of VC++. It was throwing me lots of stupid errors.
LMAO :) :) The errors are reported for a purpose -- because you wrote a buggy program. There are some warnings about depreciated standard C functions, but you can easily disable those warnings so that they do not appear.
The only compiler I have been able to get Code::Blocks to work with is MiniGW.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Installed it and stuff with ease, and decided to test it with a helloworld program. Thing is, when i decided to compile the program, it wouldn't compile.
* Release" uses an invalid compiler. Skipping...
Nothing to be done.
Followed some google links that told me to see the compiler and debugger settings, and check to see the compiler. I have Borland C++ compiler in, say, C:/Borland/BCC55.
So i set the SELECTED COMPILER dropdown to Borland C++ compiler(5.5, 5.82) and in search directories, set the path to the respective directories.
It still was stubborn and showed that error. More googling followed. I was led to project>build options where i confirmed that the selected compiler was Borland.
Hmm. I did a BC55 install, grabbed the "rest of" Code::Blocks (I was previously only using the MinGW port), did the configuring you mention doing, and was able to build a Hello World with no such errors. The "Toolchain Executables" seems key, and I found it odd that the specified directory was one up from the bin directory (but I guess it does have this note in red).
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
get devshed c++
You don't have to add any compilers.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
>>Anyway, VC++ is too big and Code::blocks is smaller
That might be a valid excuse if your hard drive is pretty full and you don't want to get a larger one. But Code::Blocks is only the IDE, you also need a compiler. VC++ 2008 is more than just a C/C++ compiler, it compiles CLR too, and its debugger is almost unbeatable by any other compiler/IDE.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343