I had the bad idea to upgrade to Mojave (or to upgrade XCode, not clear ...): it seems libstdc++ is no longer there.
after changing on the command line the compilation call in the build/matlab/mjdgges directory, by using
-lc++
instead of
-lstdc++
compilation went OK.
Perhaps we should add detection for Darwin and use 'libc++' if detected ?
Edited
Designs
Child items ...
Show closed items
Linked items ...
Activity
Sort or filter
Newest first
Oldest first
Show all activity
Show comments only
Show history only
Sébastien Villemotchanged title from libstdc++ removed from XCode 10, compile of mjdgges fails on McOS Mojave to libstdc++ removed from XCode 10, compile of mjdgges fails on MacOS Mojave
changed title from libstdc++ removed from XCode 10, compile of mjdgges fails on McOS Mojave to libstdc++ removed from XCode 10, compile of mjdgges fails on MacOS Mojave
By the way, I managed to compile everything until before the Xmas break: then I updated/upgraded MacOS, XCode and Homebrew. Apparently (also browsing the internet) most recent versions of Xcode do not include libstdc++.
Ah, I think the difference is that you use XCode. Do you need it for something else on your system? If not, you can uninstall it. It takes up a lot of space. Instead of using Xcode, you can install the macOS command line tools: xcode-select --install. I didn't know that, but I guess there's a difference between the command line tools and the build tools packaged in XCode.
Once you do that, the output of gcc --version will be:
@houtanb thank you. removing XCode and using the macOS command line tools I still get
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]ld: library not found for -lstdc++clang: error: linker command failed with exit code 1 (use -v to see invocation)
@rattoma we will move to compliation via gcc and g++ (instead of clang) on macOS. The mex files already compile and run correctly when compiled against gcc-9 and g++-9. As soon as the preprocessor is moved to c++17 (sometime next week), the preprocessor will compile and run when compiled against g++-9.
To install the GNU compilers on macOS, you will need to run: