Support Forums
How do I compile? >.< - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Programming with C++ (https://www.supportforums.net/forumdisplay.php?fid=20)
+---- Thread: How do I compile? >.< (/showthread.php?tid=26918)



How do I compile? >.< - Dolan. - 08-11-2012

Okay so I'm starting to learn how to work in c++ and I've been using notepad++ to do so. My problem now is how do I turn my source code into a .exe, is there a command I can run or do I need an IDE, if so what's the best on to use?


RE: How do I compile? >.< - ven0m - 08-11-2012

Get an IDE. My personal choice is THIS
Install it and make it default for C/C++ source files.

Make sure your source code ends with the extension .cpp

Double click on it and open it with Codeblocks. Then you will have an option of build and run.That's how your source will get compiled into .exe.


RE: How do I compile? >.< - Dolan. - 08-11-2012

I've downloaded and installed it but when I try to run/compile it I get errors saying crap about the compiler. Is there an massive guide that goes through it all?


RE: How do I compile? >.< - ven0m - 08-12-2012

The re-check your codes and fix the error and compile again.


RE: How do I compile? >.< - Dolan. - 08-12-2012

As I said before ven0m, I'm getting errors about the compiler not the code.
I'm pretty sure this has no errors, correct it if I'm wrong:
Code:
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World";

    return 0;
}



RE: How do I compile? >.< - ven0m - 08-12-2012

IDK what seems to be the problem.When I ran it, it went good.


RE: How do I compile? >.< - Dolan. - 08-12-2012

(08-12-2012, 10:47 AM)ven0m Wrote: IDK what seems to be the problem.When I ran it, it went good.

I know the code is fine, as I said it was a problem with code blocks. But I'm using dev-C++ or something now and it all works fine.


RE: How do I compile? >.< - ven0m - 08-13-2012

Great to know your problems are fixed. Dev C++ is a good IDE too.