sublimetext2 - How could I run C++ on Sublime Text 2 for mac? -
this question has answer here:
#include <iostream> using namespace std; int main () { cout << "hello world"; return 0; }
when code simple c++ on sublime text 2 mac, anytime kind of error.
file "/users/library/application support/sublime text 2/packages/c++/untitled.cpp", line 3 using namespace std; ^ syntaxerror: invalid syntax [finished in 0.2s exit code 1]
do guys have suggestions fix it?
you need install xcode command line tools before can compile sublime text 2.
https://developer.apple.com/library/ios/technotes/tn2339/_index.html
Comments
Post a Comment