-4

In terminal, I have compiled a source file named "file.C". I did this by typing g++ file.C -o file.

Now, I'd like to know how can I use Unix commands to name the output as "helloworld.out"?

Thank you in advance!

1 Answer 1

4

Given that

$ g++ file.C -o file

will create an executable called file, one would hopefully have been able to extrapolate that

$ g++ file.C -o helloworld.out

will create an executable falled helloworld.out.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.