LiveWire Peer Support Network

Printable Version of Topic "Help with compiling C++ program"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Help with compiling C++ program (http://www.golivewire.com/forums/peer-sibsoa-support-a.html)


-- Posted by Sodapop at 10:51 am on Jan. 20, 2008

Okay, so it's the first thing I have to do in this class, which is only online for some reason, and I have no idea how to compile a program. We had to start out with a simple code saved as myprog.cpp in notepad2. We had to download MingW but I can't get it to work. Every time I try it just opens up the website and prompts me to download the program again. Am I using the wrong program or something? That's the one we were told to use though.


-- Posted by marshmellowman at 10:57 am on Jan. 20, 2008

Try DevC++ compiler. I used that back in my C++ days. Open up the .cpp file and click compile. It's free software.


-- Posted by Sodapop at 1:10 pm on Jan. 20, 2008

Ok, I tried that compiler and it's not working. So evidently I'm not doing something right. I entered the code exactly as I was supposed to, hit the compile button, and it didn't do anything. I'm sorry being such a nuisance but I just really don't get why it's not working like it should. I'm doing everything ithe book tells me to and it still doesn't work.


-- Posted by Squiddles at 5:20 pm on Feb. 12, 2008

Are you getting any error messages?  


-- Posted by Stormblazer at 11:32 pm on Feb. 15, 2008

Install Dev-C++ that comes with MinGW. It should work right off unless you messed with something. All you need to do is make a new project, plop the code in it, and hit compile + run (F9).

MinGW is a windows compilation of GCC, a widely used open source compiler, the best one in fact imo, and certainly the largest by far.


-- Posted by Will Smith at 10:37 pm on Mar. 31, 2008

Quote: from Sodapop at 10:51 am on Jan. 20, 2008


Okay, so it's the first thing I have to do in this class, which is only online for some reason, and I have no idea how to compile a program. We had to start out with a simple code saved as myprog.cpp in notepad2. We had to download MingW but I can't get it to work. Every time I try it just opens up the website and prompts me to download the program again. Am I using the wrong program or something? That's the one we were told to use though.

You need to use a something called Compiler, then and only then you will be able to execute it.

Jus try Dev-C++
http://www.bloodshed.net/


-- Posted by rand0mguy at 8:35 pm on April 29, 2008

Quote: from Will Smith at 10:37 pm on Mar. 31, 2008


Quote: from Sodapop at 10:51 am on Jan. 20, 2008

Okay, so it's the first thing I have to do in this class, which is only online for some reason, and I have no idea how to compile a program. We had to start out with a simple code saved as myprog.cpp in notepad2. We had to download MingW but I can't get it to work. Every time I try it just opens up the website and prompts me to download the program again. Am I using the wrong program or something? That's the one we were told to use though.

You need to use a something called Compiler, then and only then you will be able to execute it.

Jus try Dev-C++
http://www.bloodshed.net/



i use dev-c++ and its quite handy. u say u compiled it, but did u then run it?


www.golivewire.com