#UBUNTU G++ When I run this command: g++ -std=c++17 -Wall -Icatch.hpp CalcList.c
ID: 3744605 • Letter: #
Question
#UBUNTU G++
When I run this command: g++ -std=c++17 -Wall -Icatch.hpp CalcList.cpp PP1Test.cpp
I got this warning: cc1plus: warning: catch.hpp: not a directory.
I put all my files in the same folder, I updated the latest G++, updated Ubuntu. I dont know what happen. I Googled and I saw someone said that I need to put a dot after -I, so I changed my command to: g++ -std=c++17 -Wall -I .catch.hpp CalcList.cpp PP1Test.cpp then nothing happend (not show up anything), I mean it supposed to say success or failed or error, but it does not say anything and lets me to type other command. Please help, THANKS!
Explanation / Answer
-l searches all the directory for the library with the name specified you do not need to put .hpp or any extension you only need to put the name there like this:
g++ -std=c++17 -wall -lcatch CalcList.cpp PP1Test.cpp
for reference you can go to the site :
https://linux.die.net/man/1/g++ here every command of g++ is given
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.