Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: August 2, 2025, 4:06 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming in C++ for Ubuntu 10.04
#1
Programming in C++ for Ubuntu 10.04
I wrote the code for a simple text output program (hello world). I compiled test.cpp with g++ in the terminal

g++ test.cpp -o test

compiled fine.

ran the file ./test

the program ran fine, displaying "hello world".

how do I write the program or compile the program so that I can click the file and it will run in the terminal?
Reply



Messages In This Thread
Programming in C++ for Ubuntu 10.04 - by The_Flying_Skeptic - August 3, 2010 at 10:40 pm
RE: Programming in C++ for Ubuntu 10.04 - by Autumnlicious - August 3, 2010 at 10:56 pm

Possibly Related Threads...
Thread Author Replies Views Last Post
  OMG! Ubuntu Linux Christian Edition. LOL Phish 7 6123 September 10, 2012 at 2:02 pm
Last Post: Autumnlicious
  I love programming Darwinian 7 3297 June 20, 2010 at 1:29 pm
Last Post: Tiberius
  25 popular programming languages Rob 9 3070 April 11, 2010 at 10:18 pm
Last Post: Disinter
  Which programming language Darwinian 34 10176 March 11, 2010 at 10:40 pm
Last Post: Rob
  Ubuntu Darwinian 22 9249 June 4, 2009 at 4:06 pm
Last Post: Kyuuketsuki



Users browsing this thread: 1 Guest(s)