Mikethebike Posted May 2, 2014 Share Posted May 2, 2014 HI any ideas on how to use g++ on Mavericks instead of clang (with Eclipse)? Many thanks Link to comment Share on other sites More sharing options...
Ramalama Posted May 2, 2014 Share Posted May 2, 2014 http://www.edparrish.net/common/macgpp.php Link to comment Share on other sites More sharing options...
Mikethebike Posted May 2, 2014 Author Share Posted May 2, 2014 Thanks Ramalama, but this only works prior to 10.9. installed gcc 4.9 with homebrew and symlinked. Now I get tons of errors alike: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_9' What to do? I also linked sdk 10.8 to 10.9 yesterday. Should I revert that? PS: Apple should be sued to symlink gcc to clang... Link to comment Share on other sites More sharing options...
Slice Posted May 5, 2014 Share Posted May 5, 2014 I made gcc4.8.1(native) with Clover package and may use it in some project slice$ gcc48 -v Using built-in specs. COLLECT_GCC=gcc48 COLLECT_LTO_WRAPPER=/Users/slice/src/opt/local/libexec/gcc/x86_64-apple-darwin12.5.0/4.8.1/lto-wrapper Target: x86_64-apple-darwin12.5.0 Configured with: /Users/slice/src/tools/gcc/gcc-4.8.1/configure --prefix=/Users/slice/src/opt/local --enable-languages=c,c++ --libdir=/Users/slice/src/opt/local/lib/gcc48 --includedir=/Users/slice/src/opt/local/include/gcc48 --datarootdir=/Users/slice/src/opt/local/share/gcc48 --with-local-prefix=/Users/slice/src/opt/local --with-system-zlib --disable-nls --with-gxx-include-dir=/Users/slice/src/opt/local/include/gcc48/c++/ --with-gmp=/Users/slice/src/opt/local --with-mpfr=/Users/slice/src/opt/local --with-mpc=/Users/slice/src/opt/local --with-isl=/Users/slice/src/opt/local --with-cloog=/Users/slice/src/opt/local --enable-cloog-backend=isl --disable-multilib --disable-bootstrap Thread model: posix gcc version 4.8.1 (GCC) gcc48 is a symlink to real location for the gcc. Successful compiled project ACPICA (iasl) with this compiler. Link to comment Share on other sites More sharing options...
Recommended Posts