i have a text file on my desktop saved as a .cpp file and has code in it.
how do i compile and run it in in terminal using the given g++????
coding101
0
Junior Poster in Training
Recommended Answers
Jump to Posttry
g++ yourfile.cpp
This will produce a binary called a.out. You can also do this to specify the name of the binary file:
g++ yourfile.cpp -o nameOfBinary
All 3 Replies
daviddoria
334
Posting Virtuoso
Featured Poster
coding101
0
Junior Poster in Training
StuXYZ
731
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.