Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<tr1/memory> file not found #47

Closed
mdikov opened this issue Sep 26, 2012 · 4 comments
Closed

<tr1/memory> file not found #47

mdikov opened this issue Sep 26, 2012 · 4 comments

Comments

@mdikov
Copy link

mdikov commented Sep 26, 2012

With a latest cedar I followed the instructions on how to install it and create a new spec target suite. However when I build I always get this error:

[tr1/memory] file not found

I use XCode 4.5 and I tried to perform the actions on a celan new project just to make sure that my settings are not the reason.

@mdikov
Copy link
Author

mdikov commented Sep 26, 2012

Ok I got this resolved by changing the C and C++ dialects to the C99 and C++98 as they are in the sample. The default values are different.

@amilligan
Copy link

This was a change in Xcode 4.5. Prior to iOS6 the default C++ library was
C++98; they have now changed the default to C++11. Older devices with
older iOS versions do not have the newer C++ library available, so we stuck
with the older library version for compatibility. Now that Apple has
changed the default we'll most likely change over to the newer library, but
doing so can potentially break existing projects, so we need to be a bit
careful about it.

On Wed, Sep 26, 2012 at 2:41 AM, Mikhail Dikov notifications@github.comwrote:

Ok I got this resolved by changing the C and C++ dialects to the C99 and
C++98 as they are in the sample. The default values are different.


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-8880443.

@idoru
Copy link
Contributor

idoru commented Oct 4, 2012

I have added stories to our public tracker project to track the migration to C++11.

"Move to C++11 for Specs" https://www.pivotaltracker.com/story/show/36163315
"Release and document last release to be compatible with 4.x" https://www.pivotaltracker.com/story/show/36190725

Please refer to them for future updates.

Thanks for your feedback!

@idoru idoru closed this as completed Oct 4, 2012
@amilligan
Copy link

I've pushed a commit to master (9ceb06e) which updates Cedar to use the
C++11 standard library. There are a couple things to note about this
change:

  1. New iOS projects will select the C++11 dialect and standard library by
    default, but these are not the compiler defaults for the current version
    of LLVM. If you select "Compiler default" for either the C++ Language
    Dialect or the C++ Standard Library it will revert to using C++98.

  2. Xcode disallows using C++11 for any iOS deployment target earlier than
    5.0. If you plan to target an earlier iOS version, and you want to run
    your specs against the older iOS version, you'll need to revert back to
    using C++98.

On Wed, Sep 26, 2012 at 8:00 AM, Adam Milligan adam@pivotallabs.com wrote:

This was a change in Xcode 4.5. Prior to iOS6 the default C++ library was
C++98; they have now changed the default to C++11. Older devices with
older iOS versions do not have the newer C++ library available, so we stuck
with the older library version for compatibility. Now that Apple has
changed the default we'll most likely change over to the newer library, but
doing so can potentially break existing projects, so we need to be a bit
careful about it.

On Wed, Sep 26, 2012 at 2:41 AM, Mikhail Dikov notifications@github.comwrote:

Ok I got this resolved by changing the C and C++ dialects to the C99 and
C++98 as they are in the sample. The default values are different.


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-8880443.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants