Failure compiling for OSX 10.5 #2285

issue gavinandresen opened this issue on February 7, 2013
  1. gavinandresen commented at 3:06 PM on February 7, 2013: contributor

    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.

  2. luke-jr commented at 5:42 PM on February 7, 2013: member

    Perhaps:

    int index_in_template = i - 1;
    
  3. gavinandresen commented at 11:15 PM on February 7, 2013: contributor

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

  4. gavinandresen closed this on Feb 12, 2013

  5. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me