Jump to content

use GCC on Mavericks


  • Please log in to reply
3 replies to this topic

#1
Mikethebike

Mikethebike

    InsanelyMac Protégé

  • Members
  • PipPip
  • 97 posts
  • Gender:Male

HI

any ideas on how to use g++ on Mavericks instead of clang (with Eclipse)?

Many thanks

 



#2
Ramalama

Ramalama

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Not Telling
  • Location:Germany

http://www.edparrish...mmon/macgpp.php



#3
Mikethebike

Mikethebike

    InsanelyMac Protégé

  • Members
  • PipPip
  • 97 posts
  • Gender:Male

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...



#4
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,182 posts
  • Gender:Male
  • Location:Moscow

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.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy