
-----------------------------------
MiX-MaztA-M8riX
Sat Jan 15, 2005 12:35 pm

:: Dev-C++  ::
-----------------------------------
Is this compiler good to start with?

I just want to know if there are any better FreeWare compilers along the lines of this program.

And if not.. Im having sum problems. Ewverytime I try to compile a damn code, it says it was not compiled successfully, even when I open the pre-made "Make A Hello World" program. ITs realy , REALLY, getting annoying. 

Please And Thank You.

-----------------------------------
wtd
Sat Jan 15, 2005 4:52 pm


-----------------------------------
Dev-C++ uses GCC (the GNU Compiler Collection) which is darn good, so it's not the compiler.  It's just pretty much a flaw inherent to using an IDE (Integrated Development Environment) for learning.  You spend more time figuring out which buttons to push than learning to write good code.


Don't use C++ for learning.  It's a big language with lots of very subtle gotchas.
If you're devoted to learning C++ as a beginner language, use the command-line tools.
Install MSYS from Install GCC from the MinGW site.

 http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download


You may have to restart, especially if you're running Windows 98 or ME.

After restarting, launch MSYS.  "Start Menu -> Programs -> MSYS -> MSYS" or something like that.

You'll see a window open with a bash shell prompt.  The prompt ends in $.

At this prompt, type "which g++" to determine if G++ is accessible.  If it isn't, reply here and I'll help you solve that problem.

If you can see G++, then create a new "Hello, world!" program by typing: "vi hello_world.cpp" and hitting enter.

The screen you're seeing is the vi text editor.  Hit the "Insert" key on your keyboard.  It should be located in the cluster of keys above the arrow keys.

Now you can insert text into your file.  The program source code is:

#include 

int main()
{
   std::cout 