Digos Posted December 31, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 88 Reputation: 23 Joined: 01/30/12 Last Seen: February 19 Share Posted December 31, 2017 Hello, After the rathena changed to c++11 support I can't successful compile the server on macOS (High Sierra). Even using gcc-6/g++-6 from homebrew the compilation fails. The error is the following: ... LD char-server Undefined symbols for architecture x86_64: "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(char, unsigned long) const", referenced from: YAML::ScanScalar[abi:cxx11](YAML::Stream&, YAML::ScanScalarParams&) in yaml-cpp.a(scanscalar.o) ... The undefined symbols error repeats many times. So I ask if someone have successfully compiled on macOS can tell how this was done? Thanks! Quote Link to comment Share on other sites More sharing options...
2 Digos Posted January 1, 2018 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 88 Reputation: 23 Joined: 01/30/12 Last Seen: February 19 Author Share Posted January 1, 2018 I've successfully compiled on macOS High Sierra with the following steps: Install the latest Xcode from Apple App Store Install homebrew https://brew.sh Install the following packages using homebrew on Terminal brew install mysql brew install pcre Go to the server directory on Terminal and type ./configure CC=clang CXX=clang++ --with-mysql=/usr/local/opt/mysql/bin/mysql_config --with-pcre=/usr/local/opt/pcre/ make clean && make server Quote Link to comment Share on other sites More sharing options...
Question
Digos
Hello,
After the rathena changed to c++11 support I can't successful compile the server on macOS (High Sierra).
Even using gcc-6/g++-6 from homebrew the compilation fails.
The error is the following:
The undefined symbols error repeats many times.
So I ask if someone have successfully compiled on macOS can tell how this was done?
Thanks!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.