Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0008960 [DCSS] Bug Report minor always 2014-09-15 20:04 2015-01-24 04:00
Reporter geekosaur View Status public  
Assigned To neil
Priority normal Resolution done  
Status closed   Product Branch 0.16 ancient branch
Summary 0008960: 10.9 SDK causes build failures with clang
Description It works if I have MACOSX_DEPLOYMENT_TARGET=10.8 in the environment, but with native I get errors, see http://lpaste.net/326477253196120064http://lpaste.net/326477253196120064 [^]

Zaba on IRC reports that the build succeeds if -std=c++11 is added to the build flags; apparently the 10.9 SDK uses C++11 features and requires c++11 mode to be turned on.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0027275)
Zaba (developer)
2014-09-15 20:07

More precisely, the clang in the 10.9 SDK exposes C++11 features regardless of the -std flag, but only sets __cplusplus to 201103L if -std=c++11 is given (hence the conflicts with things defined in AppHdr.h)
(0027320)
neil (administrator)
2014-09-20 16:08
edited on: 2014-09-20 16:09

Does clang provide a way to tell whether those features are present?

In the case of nullptr it looks like it uses a macro so we can do #ifndef. But that doesn't help with the auto_ptr/unique_ptr thing.

(0027385)
neil (administrator)
2014-09-29 22:42

These should be fixed in trunk (0.16-a0-918-g66a6cb6 for the nullptr warning, 0.16-a0-917-g1d717b6 for the unique_ptr error). I don't have OS X to test, so please reopen the bug if the problem still exists or if there are further compilation errors.

Thanks!

- Issue History
Date Modified Username Field Change
2014-09-15 20:04 geekosaur New Issue
2014-09-15 20:07 Zaba Note Added: 0027275
2014-09-20 16:08 neil Note Added: 0027320
2014-09-20 16:09 neil Note Edited: 0027320
2014-09-29 22:42 neil Note Added: 0027385
2014-09-29 22:42 neil Status new => resolved
2014-09-29 22:42 neil Fixed in Branch => 0.16 development branch
2014-09-29 22:42 neil Resolution open => done
2014-09-29 22:42 neil Assigned To => neil
2015-01-24 04:00 geekosaur Status resolved => closed


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker