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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -