Apple OSX

I use a Mac.

The OS(X) is just a nightmare with only a few exceptions.

This is not one of the exceptions.

The Problem: In learning C++ (C Plus Plus) and want to compile and execute some simple programs – math and text manipulation mostly.

Looking for help on anything “tech” for a Mac is like trying to kill someone with a crayon and a piece of felt.

Here is the problem I finally tracked down (6 hours of reading forums).

It turns out that the sym link for the C++ (G++) compiler is linked to 3.3 – here are a few C&P’s form the command line:

lrwxr-xr-x     1 root   wheel            7 Nov 24 22:09 g++ -> g++-3.3
-r-xr-xr-x     1 root   wheel       268808 Dec 24  2005 g++-3.3
-rwxr-xr-x     1 root   wheel        80484 Dec 24  2005 g++-4.0

also

lrwxr-xr-x     1 root   wheel            7 Nov 24 22:09 gcc -> gcc-3.3
-r-xr-xr-x     1 root   wheel       264712 Dec 24  2005 gcc-3.3
-rwxr-xr-x     1 root   wheel        80484 Dec 24  2005 gcc-4.0

Simple enough – symlinks are easy to manage.

I put this post up in the hope that someone will hit this and not have to deal with Apple or any of the “experts” on the forums.

Why no XCode?

Simple, I use another IDE that suits my needs more. Learning another IDE takes a while to get dialed in and I enjoy my rapid workflow.

Like all other Apple efforts, it’s the Apple way or no way.

This entry was posted in Apple and tagged , , . Bookmark the permalink.

2 Responses to Apple OSX

  1. Marc says:

    Still having issues using C++ std libs. Working on a solution. None yet.

    • Marc says:

      Solved. Go through all the (unnecessary) hoops over at Apple and get XCode – that install will fix all these problems. Thanks again Apple for doing a crap job installing a bad version of the compiler. I understand, this is how you get people to return to the site.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>