About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
c++11 on mac
Author Message
yvanvds Offline
Silver Supporter

Post: #1
c++11 on mac
Hey.

I'm back again with a question about c++11. Which works on window, linux and android, but apparently not on Mac.

I guess some features are working, but certainly not all of them. (Not atomic, for instance.)

To get them working, some project settings should change:

OSX deployment target -> osx 10.7
C++ language dialect -> C++11
C++ standard library -> libc++

But once I do that i get a typedef redefinition in types.h, because of

typedef char * Ptr;

being in macTypes.h

I could of course adjust my github fork to fix this, but since c++ 11 is already supported on other platforms, it might be better if you could change this in the master source. After all, it does not make sense that c++11 is supported on all platforms except mac.

Regards,

yvan
07-06-2014 12:31 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: c++11 on mac
Hi,

According to this website:
http://appleinsider.com/articles/14/03/2...ntain-lion
10.5, 10.6, OS takes around 21% of Mac market share.

If I change OSX deployment target -> osx 10.7 this excludes that 21% of Mac users.

As for the 'Ptr' issue, please try using this:
http://www.esenthel.com/?id=doc#System_Headers
07-06-2014 11:06 PM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Silver Supporter

Post: #3
RE: c++11 on mac
ok, thanks. Who would have thought not all of those posh mac users upgrade at apple's command :-)
07-07-2014 01:13 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: c++11 on mac
wink
07-07-2014 03:17 AM
Find all posts by this user Quote this message in a reply
Post Reply