MAC終端機怎麼跑c++... - MACMia · 2012-11-27Table of ContentsPostCommentsRelated Posts不好意思,這個問題我爬文兩天了,可是都找不到答案.. osx 是10.7 想要跑 helloworld.cpp的檔案,可是不會用... 我在終端機 打"gcc helloworld.cpp" 沒用... 可以請教一下嗎? -- MACAll CommentsGenevieve2012-12-01要下載Xcode並安裝它的Command Line ToolsEdith2012-12-04Command Line Tools安裝好後請用g++ ...Isla2012-12-08或者 clang++Caroline2012-12-11CLT裝好了,請問 g++ 直接打檔名 就好了嗎?還是要放到特定資料夾裡?Elvira2012-12-15用g++ compile,然後用 ./a.out 執行...Carolina Franco2012-12-20-bash: ./: is a directory 囧Susan2012-12-22我孤狗的結果就是用./a.out 可是沒辦法呀Iris2012-12-27我也不知道哪裡出問題,但終端機真的不太懂,還請y大幫助Jacob2012-12-30終端機裡你在的資料夾對不對? ls a.out就知道了(?Rae2012-12-30No such file or directory ...我該把cpp檔放在哪?Elizabeth2013-01-02還是要把cpp檔建立成out檔?(xcode不能直接編譯cpp嗎?)Carolina Franco2013-01-02因為我用xcode打開cpp檔,找不到run或compile的選項..Faithe2013-01-05你g++ helloworld.cpp 可是你沒有給他 output file nameIna2013-01-07但是樓上g++預設的output filename就是a.outZanna2013-01-11對耶 @@ 沒注意,因為都會給filename Orz..Elma2013-01-14不過會出現 is a directory 也是怪怪的, 就算沒檔案應該也是./a.out: No such file or directoryWallis2013-01-17先打 ls 看當前目錄 然後 cd空格想要去的資料夾Michael2013-01-17比如你的檔案放在A中的B裡面 檔名是xxx.cppCaitlin2013-01-22就 cd A 然後 cd B 然後g++ xxx.cpp 就可compile之後要跑結果 就 ./a.outBrianna2013-01-25http://ppt.cc/7xuf 我把檔名改a.cpp了George2013-01-25g++ 後面要接你的 source file , a.out 是 g++ 產生的...James2013-01-26謝謝樓上,我g++ a.cpp後就看到 a.out了 ~才發現是 我好像沒有把檔案的位置給打出來Related Posts有軟體能設熱鍵然後貼上複製的資料嗎?連BBS很快斷線AirPort Disk 與 iTunessafari出現about:blankwindows下 讀取hfs+
All Comments