Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
-bash g++:command not found
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brightsun" data-source="post: 1396773" data-attributes="member: 249320"><p>"Newbie" question:</p><p>I'm learning some C++ at university, so I installed Xcode on my mac in order to compile and run my small programs.</p><p>There is absolutely no issue as long as I work within Xcode projects, that is to say writing and running "within Xcode".</p><p>Instead, I can't manage to compile (and run) them directly from the terminal window because, if I type "g++ file_name.cpp", I get the answer "-bash g++ command not found"; the same happens with gcc.</p><p>I thought that installing Xcode would provide me automatically with a proper compiler.</p><p></p><p>Can you help me?</p><p>PS: there are some similar threads but I couldn't find another user with exactly my same problem...</p></blockquote><p></p>
[QUOTE="Brightsun, post: 1396773, member: 249320"] "Newbie" question: I'm learning some C++ at university, so I installed Xcode on my mac in order to compile and run my small programs. There is absolutely no issue as long as I work within Xcode projects, that is to say writing and running "within Xcode". Instead, I can't manage to compile (and run) them directly from the terminal window because, if I type "g++ file_name.cpp", I get the answer "-bash g++ command not found"; the same happens with gcc. I thought that installing Xcode would provide me automatically with a proper compiler. Can you help me? PS: there are some similar threads but I couldn't find another user with exactly my same problem... [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
-bash g++:command not found
Top