简体   繁体   中英

CodeBlocks for Mac won't show up in terminal

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?

如您所见,我尝试运行一个简单的语句,但是它无法在终端中显示。我的确有xcode和xcode命令行。我不知道可能是什么问题,我下载xcode的目录是否有问题?还是代码块?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM