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

Failure compiling for OSX 10.5 #2285

Closed
gavinandresen opened this Issue Feb 7, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@gavinandresen
Contributor

gavinandresen commented Feb 7, 2013

Compiling a 0.8.0rc1 release build with:
-mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk

I get:

src/rpcmining.cpp:310: error: ‘class std::vector<CTransaction, std::allocator<CTransaction> >’ has no member named ‘data’

... because the XCode std::vector is missing the .data() method.

I'm still figuring out what to do about it. Replacing with .data() with &[0] would be an easy source code workaround; so might upgrading to the latest version of XCode or using another STL implementation.

@luke-jr

This comment has been minimized.

Show comment
Hide comment
@luke-jr

luke-jr Feb 7, 2013

Member

Perhaps:

int index_in_template = i - 1;
Member

luke-jr commented Feb 7, 2013

Perhaps:

int index_in_template = i - 1;
@gavinandresen

This comment has been minimized.

Show comment
Hide comment
@gavinandresen

gavinandresen Feb 7, 2013

Contributor

Grrr... .data() is "since C++11" although it must be a g++ extension....

Contributor

gavinandresen commented Feb 7, 2013

Grrr... .data() is "since C++11" although it must be a g++ extension....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment