As you can see, I've tried running a simple statement but it fails to show up in the terminal. I do have xcode along with xcode command line. I don't know what could be the problem, would it be a problem with the directory where I downloaded xcode? or maybe Codeblocks?
There are several spaces on your command. Either you should remove spaces from that path by renaming directories or better you should escape the space characters using \\
or putting the command inside "
.
For example:
g++ /home/user name/code.cpp // won't work
g++ /home/user\ name/code.cpp // escaping space character
g++ "/home/user name/code.cpp" // using quotation marks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.