Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Begginer, How To Run C++ Programs

Status
Not open for further replies.

perlkid

Programmer
Mar 9, 2000
35
US
<br>&nbsp;Hello,<br><br>&nbsp;I'm a perl programmer and I need to learn c++. I have found tutorials on how to write c code but I have no Idea how to run it. I'm used to just putting a path to an inerpreter and pointing my browser to a cgi. Do I run c on my server and invoke it through the browser like cgi? How do I go about it?<br><br>&nbsp;Thanks A Lot, I know begginers are hassles.<br><br>&nbsp;perlkid
 
hello perlkid,<br>what a question - where to begin??<br>you have to compile and to link your program. then you get an executable ( sometimes - most times you get errormessages ). please refer to the documentation of your compiler and linker ( you are a perl-programmer - so i think you'll have a gcc on your linux-box, read man gcc or the gcc - info pages ).<br>for your first hello_world.c try: 'make hello_world'. then you will have an executable called hello_world.<br>much fun<br>noka
 
<br>&nbsp;Thanks For The Reply noka,<br><br>&nbsp;Actually, Since then I downloaded the borland c++ compiler 5.5<br><br>&nbsp;I'm going to try and get that to work.<br><br>&nbsp;If I've studied right, what I'll have to do, is write a file in c code and compile it then the output of the compiler will be the translation of my c code into machine code. Then It will run. I think that only applies on windows though, and I don't care for programming on window, so I'll probably try make hello_world like you said.<br><br>&nbsp;Thanks noka,<br><br>&nbsp;perlkid
 
hello perlkid,<br>i'm sorry this will <b>not</b> be successful.<br>make is a tool which is available under unix. i do not know if there is an equivalent for windows but i think that the borland - compiler will run in an ide which will guide you.<br>try linux&nbsp;&nbsp;;-)<br>noka
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top