LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 858 users online 158805 members 1849 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 41 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Help with compiling C++ program
I don't know how
Replies: 6Last Post April 29 8:35pm by rand0mguy
Single page for this topic Email Print Favorite
( Sodapop )


Dairy Product Addict
Reply
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.

-------
Paranoia is the worst pestilence in the world.

10:51 am on Jan. 20, 2008 | Joined April 2005 | 230 Days Active
Join to learn more about Sodapop Kentucky, United States | Straight Female | 491 Posts | 2843 Points
marshmellowman


Guru

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

-------
sex me up
tell me, tell me, there's no goodbyes...

10:57 am on Jan. 20, 2008 | Joined Feb. 2007 | 360 Days Active
Join to learn more about marshmellowman England, United Kingdom | Straight Male | 7915 Posts | 20099 Points
( Sodapop )


Dairy Product Addict
Reply
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.

-------
Paranoia is the worst pestilence in the world.

1:10 pm on Jan. 20, 2008 | Joined April 2005 | 230 Days Active
Join to learn more about Sodapop Kentucky, United States | Straight Female | 491 Posts | 2843 Points
Squiddles


Dairy Product Addict

Ad Free
Reply
Are you getting any error messages?  

5:20 pm on Feb. 12, 2008 | Joined Sep. 2004 | 333 Days Active
Join to learn more about Squiddles Virginia, United States | Straight Male | 258 Posts | 3458 Points
Stormblazer


Visionary
Reply
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.

-------
Religion: Apathetic agnostic
Political Affiliation: Independent


11:32 pm on Feb. 15, 2008 | Joined April 2005 | 248 Days Active
Join to learn more about Stormblazer Colorado, United States | Bi-curious Male | 5361 Posts | 8243 Points
Will Smith


Quality Control Engineer
Reply
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/


10:37 pm on Mar. 31, 2008 | Joined Mar. 2008 | 24 Days Active
Join to learn more about Will Smith Afghanistan | Straight Male | 527 Posts | 922 Points
rand0mguy


Professional
Reply
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?

-------
aaaaaah im bored

8:35 pm on April 29, 2008 | Joined Jan. 2008 | 75 Days Active
Join to learn more about rand0mguy New Zealand | Straight Male | 833 Posts | 2106 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic