I need some help and i found an old thread but i couldnt really make heads nor tails of it. I am a college student, and today in lecture we used the terminal in Linux for the first time to compile a C++ code and run it. i asked the GSI, who i know is a mac user if the same commands would work in Mac Terminal and he said they should. I cant figure out how to compile the file. for this example the filename is
sawTooth.cpp
we were given the code g++ sawTooth.cpp -o sawTooth
in order to compile the file. i am trying to type this into terminal but i get a response that g++ is not a recognized command. if anyone could help with ways to compile a file that would be great
sawTooth.cpp
we were given the code g++ sawTooth.cpp -o sawTooth
in order to compile the file. i am trying to type this into terminal but i get a response that g++ is not a recognized command. if anyone could help with ways to compile a file that would be great