turi-code / GraphLab-Create-SDK

SDK for Turi's GraphLab Create.
https://turi.com
BSD 3-Clause "New" or "Revised" License
149 stars 85 forks source link

Cannot build examples #17

Closed kevglynn closed 8 years ago

kevglynn commented 8 years ago

When I run the command cd graphlab-sdk && make, the examples won't build, and I get the following error:

$ cd graphlab-sdk && make g++ -o sdk_example/example1.so -std=c++11 -I . -shared -fPIC --stdlib=libc++ -undefined dynamic_lookup sdk_example/example1.cpp g++: error: unrecognized command line option ‘--stdlib=libc++’ make: *** [sdk_example/example1.so] Error 1 graphlab-sdk $

Is it necessary to modify the .cpp file, like here on stackoverflow?

kevglynn commented 8 years ago

I should have added, Mac OS X 10.11.5, GLC 1.10, xcode is installed, etc.

ylow commented 8 years ago

Hi, can you try replacing g++ with clang++ in the Makefile.

kevglynn commented 8 years ago

Yes that worked perfectly. Thank you.