Not understanding a question including cpp files
I've been given this question in an assignment and i'm not exactly sure what to do with it. This is how it is written:
Write a command that will generate an executable file named main from the C++14 source code file main.cpp I'm mostly confused because I don't have any files that come with this assignment, just a few questions and this is the first one. Any ideas? |
g++ main.cpp -omain
|
Quote:
Also, I’ve got the same question but this time it states c++98 instead of c++14, what is the difference? |
type
Code:
man g++ |
The assignment giver (a McTeacher probably) hasn't given you any file named main.cpp. So write your own small main.cpp (say to print HELLO WORLD. Then use your main.cpp to the command (probably ld to create the executable file called as main.
OK |
Quote:
|
|
Quote:
|
goofygoober,
Please be aware that many of your questions show a failure to have read any basics about these topics. LQ is not a Wikipedia page. Please perform some searches for information, prior to asking. If you have any questions about how to use LQ or pose questions, please review the LQ Welcome Link |
All times are GMT -5. The time now is 07:29 AM. |