GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Jun-2007, 04:46
dizyn dizyn is offline
New Member
 
Join Date: May 2006
Posts: 2
dizyn is on a distinguished road

How to compile .cpp file


i have .cpp file which has hello world example in it.
i don't know how to compile it from command line
any help please
thanks.
  #2  
Old 09-Jun-2007, 07:46
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,648
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: how to compile .cpp file


Quote:
Originally Posted by dizyn
i have .cpp file which has hello world example in it.
i don't know how to compile it from command line
any help please
thanks.

What operating system? What compiler?

With GNU compilers on Linux or on Windows XP platforms (assuming path has been set as it would be for "normal" installations:

g++ -Wall -W -pedantic test.cpp -o test


For recent Borland compilers on various Windows, assuming path has been set correctly and configurations files created as in the startup instructions:

bcc32 test.cpp

For various Microsoft compilers, assuming path and other variables have been set (Maybe by vcvrs32.bat or some such thing):

cl test.cpp /EHsc

Other compilers: Look at the documentation from the vendor.


Regards,

Dave
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Burner Help - Power Calibration Error.... JonBoy420 Computer Hardware Forum 111 17-Apr-2008 15:58
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 07:44
Download files in c for windows operating system oozsakarya C Programming Language 5 20-Jun-2006 03:33
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:42.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.