building issue on Mac OSX

98 views
Skip to first unread message

zhen...@tune.com

unread,
May 20, 2015, 3:51:49 PM5/20/15
to flatb...@googlegroups.com
Hi all,
I'm trying to set up FlatBuffers on Mac OSX10.10 using Xcode.
After running
cmake -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -G "Xcode"
and
cmakexbuild
I get compile errors stack like:

 error: no member named 'bsearch' in namespace 'std'; did you mean simply 'bsearch'?

    void *search_result = std::bsearch(&key, Data(), count,

                          ^~~~~~~~~~~~

                          bsearch

note: 'bsearch' declared here

void    *bsearch(const void *, const void *, size_t,

and build failed.

I use Xcode 6.3.2 and CMake 3.2.2. Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)

Could someone help me out? Thank you!


Best,

Zhenzhen

Wouter van Oortmerssen

unread,
May 20, 2015, 6:02:30 PM5/20/15
to zhen...@tune.com, flatb...@googlegroups.com
That issue has just been fixed.. thanks for reporting!

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zhenzhen Yin

unread,
May 20, 2015, 6:18:25 PM5/20/15
to Wouter van Oortmerssen, flatb...@googlegroups.com
Got it all set up! Thank you for clearing this out!

Best,
Zhenzhen
Reply all
Reply to author
Forward
0 new messages