I'm trying to install SU2 (https://su2code.github.io/docs/Simple-Build/) on my MacBook.

./bootstrap I keep on getting the message configure: WARNING: C++ compiler cannot create executables.

I do have XCODE installed on my system with the command lines tools. I see a gcc on my system:

gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Yet I don't seem to able to compile c++ code from the terminal.

Just an idea: could that have to do with environmental variables having to be set to point at the Xcode gcc location?

0 Answers