By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

cant compile on linux system.cant compile on cant compile onlinux system.

P: n/a
hi all,
I have simple basic c++ program "hello world" which i cant compile on
linux system. I have given extension as .C. please tell me how to
compile C++ programs on Linux.

Mar 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 01 Mar 2007 03:09:38 -0800, Nagaraj wrote:
hi all,
I have simple basic c++ program "hello world" which i cant compile on
linux system. I have given extension as .C. please tell me how to
compile C++ programs on Linux.
If your program file is helloworld.C (assuming you have the GNU
compiler gcc installed, which you hopefully will) try:

g++ helloworld.C -o helloworld

then run the binary with:

../helloworld

--
Lionel B
Mar 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.