Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adventures in c++ [solved for now]

Featured Replies

So I decided to take a course in c++, but making things difficult I want to be able to work at home, which means getting set up on this mac.

Apple has an IDE for cocoa/objective c/c/c++ called xcode which i downloaded, and supposedly it comes with compilers and all. So I should have compilers downloaded. Problem is, I don't get the terminal command g++ working:

-bash: g++: command not found

 

I want to be able to write code in a text editor and compile and run via command line (aka terminal on osX)

 

If someone is familiar with setting up compilers, has done c++ programming on a mac system or is feeling otherwise helpful, please share your wits.

 

Btw I'm posting this here and not on a mac forum because I'm stupid.

 

EDIT:

Found the location where the compilers are installed. These files are related to the gnu compiler collection:

g++

g++-4.0

g++-4.2

gcc

gcc-4.0

gcc-4.2

 

The adventure continues!

I know someone that uses xcode, I'll talk to him see what he tells me.

  • Author

i reinstalled xcode and this time selected one checkbox and now it works.

First time I thought: I won't need these useless extra features, I won't install them. Turns out what I needed was just that.

 

Time to become pro c++ coder for real! :shades:

Yeah, I was doing a little C++ on my linux server a while back and had the same problem. Installing g++ fixed it as well :P

polvCwJ.gif
"It's not a rest for me, it's a rest for the weights." - Dom Mazzetti

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.