GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and older versions of OS X.

learn more… | top users | synonyms

0
votes
0answers
23 views

Whats the best way to upgrade the default compiler on El Capitan? [on hold]

Looking for the best and recommended way to install latest the GCC compiler alongside the default C++ compiler that comes with Xcode on Mac OS X El Capitan.
0
votes
1answer
80 views

How do I build and install gcc5 in OS X 10.11 without Xcode?

Obviously installing gcc from source will require a compiler to build it; is it possible to install gcc without Xcode?
0
votes
0answers
21 views

Is the C compiler used in Xcode ANSI-compliant?

I need to build php from source but when I compile php and apache with xcode, Compiler logs some warnings about "deprecated" uses however I use latest tools. So I found out that apache recommends ...
0
votes
0answers
35 views

Compiling Ghostscript in El Capitan

I'm trying to compile Ghostscript-9.18 ( i need libgs ) and I've run into the new Rootless Security stuff when I try to install the libs. How do I change the target from /use/include to ...
0
votes
2answers
58 views

How to get the default compiler of c++ on Mac os x

I am new in c++ on Mac os x and I need to know how to get some details: How to get the default compiler c++/c? How to change the default compiler? How to set the compiler in a CMakelists.txt file ...
3
votes
1answer
543 views

How do I use GCC on El Capitan?

I installed gcc via homebrew with no errors. brew install homebrew/versions/gcc49 brew unlink gcc49 && brew link gcc49 But when I try to run gcc, clang is used instead. ~$:gcc --version ...
2
votes
1answer
198 views

compile error: <atomic> is not implemented

When I compile a open source program called gate with "make" I have this error message: error <atomic> is not implemented I must add that I know this program and I compiled it several times ...
0
votes
1answer
129 views

homebrew gcc-5 fails to find any standard library

I am running os x version el capitan and have installed gcc5 via homebrew. However, compiling simple programs such as: #include <stdio.h> int main() { printf("Hello world\n"); return ...
1
vote
2answers
70 views

brew not linking gcc after install?

Why does brew not link gcc properly? What am I missing? $>brew install gcc49 --without-multilib ==> Installing gcc49 from homebrew/homebrew-versions ==> Downloading ...
1
vote
2answers
171 views

Can't compile source code on mac

I already have xcode installed on OSX Yosemite. I have also run it and accepted terms and conditions. I can also do gcc --version and I see Configured with: ...
0
votes
0answers
18 views

Restoring C++ Compiler

I needed the OpenMP C++ library so I followed the instructions in this post to install GCC since Clang does not support OpenMP. I have OS X Mountain Lion and installed GCC4.9. I do not know what went ...
1
vote
1answer
48 views

“Failure while executing” error when trying to install GCC

I've followed the instructions of the both the accepted answer to this question as well as the other suggestions, How do I install GCC via Homebrew?. But all I get is the following message when I run ...
2
votes
1answer
76 views

installing old version of c++ compiler

I use OSX 10.10.5 need to compile some c++ code with an old version of gcc, namely 4.3.4. I don't think XCode provide that kind of tools. I suppose there is a way to do that by hand. How can I do that ...
0
votes
0answers
351 views

gcc: error: unrecognized command line option ‘--stack=8000000’

I am trying to build a project using a flag --stack=8000000 because my application may require a huge memory in future, but I am facing the error. gcc: error: unrecognized command line option ...
1
vote
2answers
72 views

Where are g++ stl libraries in Darwin

I am trying to understand how some of the data structures are designed in stl. In ubuntu, I usually open the .h and .cpp files from /usr/local/include but in Darwin (kernel version 14.3.0) I am lost, ...
0
votes
1answer
374 views

homebrew libgfortran

My Python app is using scipy which apparently needs libgfortran. After a recent brew update/upgrade, my Python app fails to run due to a libgfortran dependency issue: ...
3
votes
2answers
963 views

Homebrew: how to switch between GCC versions `gcc49` and `gcc`?

I foolishly uninstalled GCC 4.9 after brew upgradeing to GCC 5. However I need both versions and I need to be able to switch back and forth. I thought I could just do brew switch 4.9.2 but the old ...
1
vote
1answer
219 views

How to link back to the correct C compiler?

While trying to install fink-0.38.4 I get the ERROR: There is no C compiler on your system. Make sure that the Developer Tools are installed. I have got errors about missing a C compiler while trying ...
1
vote
0answers
1k views

Command line tool installed, but gcc/g++ compiler not working

Heads up, I have a similar problem such as in this question, but it wasn't resolved: how to debug configure.sh errors when compiling rsync on Yosemite So basically I am looking to compile code via ...
1
vote
1answer
1k views

how to debug configure.sh errors when compiling rsync on Yosemite

I am trying to build myself a new version of rsync 3.1.1 under Mac OS 10.10.3, as the mac comes with an older version, and the project does not distribute binaries. I followed this simple script but ...
8
votes
3answers
8k views

How to accept Xcode license?

I want to install a C based toolbox on Matlab software. To do this, I should install GCC compiler. I think I have done that already. And also I have Xcode too. To setup the toolbox I need to write ...
2
votes
0answers
362 views

what is difference between gcc version and Xcode gcc version?

This maybe a little silly question but I am very confused executing pkgutil in shell I get $ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables package-id: com.apple.pkg.CLTools_Executables ...
1
vote
1answer
131 views

Use specific local gcc and related libraries with Homebrew

I would like to use Homebrew to install some stuff, In the mean time, I have already installed my local gcc, and I want Homebrew to use this specific one (this gcc at /usr/local/bin/gcc is frequently ...
3
votes
1answer
742 views

Sorting out compile errors when using multiple different versions of Xcode

I am on Yosemite and trying to compile a software package using g++. Compiling this particular package has previously worked on Mountain Lion under Xcode 4.6.3, but now I have Xcode 6.1.1, and the ...
0
votes
1answer
1k views

Yosemite - Change default C and fortran compilers

I am struggling to build a climate model that depends heavily on C and Fortran compilers installed on the machine. I installed XCode and its default compilers, but I had to install more recent ...
1
vote
0answers
761 views

Homebrew default compiler

I have read similar topics here, but unfortunately these solutions does not help me. I would like to recompile all installed software (or at least some formulas) from Homebrew using gcc from ...
0
votes
0answers
75 views

building gcc 4.9.2 with Java enabled; command top_builddir not found

Building gcc fails if Java is enabled and the command make is run from another make file (an automation script). The process run smoothly if Java is either not enabled or when i goto build directory ...
2
votes
1answer
574 views

GCC : Command not found

I'm very new to Mac and right now my operating system is 10.10 Yosemite. I installed XCode and Xcode CLT, gcc came along with it as well. I was asked to change the default compiler to gcc. I went ...
1
vote
0answers
87 views

MAC HPC GNU or MAC PORT GNU

I have been using the gcc compiler from http://hpc.sourceforge.net/index.php for 6 years. Unfortunately they are not using the most up to date compiler. I have already installed gcc 4.8.3 from mac ...
1
vote
3answers
4k views

Issue installing GCC using homebrew (scipy package dependency)

I am attempting to install the scipy (Scientific Python, including matplotlib) package using homebrew, and I noticed that it fails when it needs to install a dependency (gcc version 4.9.0). I ...
0
votes
0answers
142 views

OSX 10.9: GCC standalone (non-admin)

I have a Mac Mini at home, with my own administrator account. My school provides MacBook Airs. I have XCode installed on the Mini, but I only use the command line extensions-- GCC, G++, etc. I don't ...
1
vote
1answer
386 views

Compile error OSX

I'm trying to compile a program called PEAR enter link description here and seems there is something wrong at this step. I have Xcode installed. Thanks for your help, Bernardo ...
0
votes
1answer
145 views

Can I compile mpich 3 with gcc 4.9 on Mavericks?

I am trying to compile mpich 3 on a Mac Pro with Mavericks using gcc 4.9. Has any one had luck doing this? My machine is hanging on configure step.
0
votes
3answers
946 views

switch back to clang after installing gcc through Macports on Mavericks

After I installed Macports (and after that I have installed several versions of gcc through Macports), whenever I type gcc, one of those gcc installed through Macports will be invoked. Before I ...
0
votes
0answers
78 views

how to build mysqlsniffer in os x 10.9

I'm trying to build that (hackmysql.com/code/mysqlsniffer.tgz) in my mac. I see only errors during compilation. I understand that is because of some gcc keys/options. Based on Google search i've ...
4
votes
1answer
7k views

C compiler with openmp support on Mavericks via Homebrew

I need to have a C compiler with openmp support. I installed gcc49 via Homebrew but still the configure script of the library I like to install (nfft) complains: You don't seem to have a C compiler ...
2
votes
4answers
28k views

Install gcc to mac via Terminal

I have installed Xcode and the command line tools from the Mac Developers website, which I have read a few times is a prerequisite. I also installed the MacPorts program. In terminal: sudo port ...
2
votes
2answers
3k views

How do I install GCC and make on a mac without administrator access or using Xcode?

I'd like to install gcc and make on my Macbook Air, but I don't have root access on it. I found this link through searching on google, but I have no idea how to set up the prefix's so that the actual ...
1
vote
0answers
2k views

<omp.h> library isn't found in the GCC version (4.2.1) in Mavericks [closed]

I have a problem with GCC. I want to update it to a new version, from the 4.2.1, to program with parallel programming. However, in this version there is not the library <omp.h>. How can I ...
1
vote
1answer
189 views

Wine on Mac via Homebrew

I installed a Windows application on my Mac after successfully installing Wine via Homebrew. The application runs and seems to function correctly except that all of my data is missing. I get the ...
0
votes
1answer
585 views

GCC 4.7 (via brew) keeps including from “/usr/include/c++/4.2.1”

This one is driving me crazy: I need to use lot of stuff which simply does not compile with the standard clang/llvm compilers which come with Xcode 5 (on Mac OS X 10.8), so I decided to install gcc47 ...
2
votes
2answers
4k views

Uninstall OSX-gcc-installer without first installing Xcode

Is there a way that I can uninstall osx-gcc-installer without first having to install Xcode, then run sudo /Developer/Library/uninstall-devtools —mode=all ? I installed it on Mountain Lion, and I ...
4
votes
1answer
8k views

No GDB in the new Command Line Tools (OS X Mountain Lion) for Xcode - September 2013?

I've recently formatted my Mac and when I reinstalled the command line tools, I installed the new Command Line Tools (OS X Mountain Lion) for Xcode - September 2013. I've just typed gdb in my ...
0
votes
1answer
3k views

Where to find ARM GCC compiler in XCODE5?

I am trying to run kivy on Mac and it relies on my Xcode arm gcc compiler. I already tryied to answer this question in a stackoverflow question but here I we again... Where to find the arm apple ...
1
vote
1answer
409 views

MacPorts: How do I make py32-scipy not depend on gcc48?

MacPorts has many unnecessary dependencies. I need to disable the dependency of py32-scipy on gcc48 because gcc48 won't build on my system for some reason. I get this error: (much information ...
12
votes
5answers
42k views

How to set gcc 4.8 as default gcc compiler

I recently installed gcc 4.8 using brew on OSX 10.7.5 (Lion). I can now compile using gcc 4.8 by using g++-4.8 some_file.c or using the default gcc 4.2 by using g++ some_file.c I want to use gcc ...
3
votes
2answers
3k views

What build flags are available for brew install of gcc?

I'm curious as to what build flags are available to me when installing gcc 4.8 using brew. This question explains how to install gcc 4.8 using brew, but only specifies two possible flags i.e ...
2
votes
1answer
93 views

What is the relationship between the OS release, the XCode release, and the default compiler?

If you run: 'cc --version' or 'c++ --version' on a modern OS X with XCode and the command line tools installed (in my case, Mountain Lion with XCode 4.6.x) you will see that the default C ...
1
vote
1answer
2k views

How do I specify what is used as the real C compiler?

I have a configure on Mountain Lion that's running into trouble: [snip] checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc checking whether the C ...
1
vote
1answer
793 views

Installing gcc47 as default using Homebrew

I'm trying to install gcc47 as my default compiler using homebrew. I can successfully install gcc47, but it adds a -4.7 suffix on all of its binaries. If I try to symlink it in /usr/local/bin things ...