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

1
vote
2answers
349 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 http://ftpmirror.gnu.org/...
1
vote
2answers
160 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, ...
3
votes
1answer
793 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 ...
2
votes
1answer
862 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 ...
2
votes
1answer
612 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
1answer
33 views

How can I reinstall gcc?

Im new with mac and tried to install gcc / g++ on an MacBook Air with El Captain. I installed Xcode and used xcode-select --install It completed and was successful. However, for some reason I ...
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 ...
1
vote
1answer
169 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 ...
0
votes
1answer
56 views

ld: library not found for -lgcc

After a brew upgrade every time I try to compile a .c file I get the following error: ld: library not found for -lgcc collect2: error: ld returned 1 exit status Wrappers like mpicc still work though....
0
votes
1answer
616 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 ...
3
votes
0answers
211 views

Accept Xcode 7.3 license

I want to install a C/C++ compiler for Matlab R2015b. I am running OSX El Capitan 10.11.3. I installed the newest version of Xcode (Xcode Version 7.3 beta 3). According to MathWorks, Xcode 7.x ...
2
votes
0answers
580 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
0answers
18 views

GCC 5.X integration on Xcode 6

I need to use/integrate GCC 5.X (in my case 5.3, and it is already installed) on Xcode 6.2. I've found a lot of outdated tutorials about GCC 4.X and Xcode 5 (or lower), but all of them are outdated ...
1
vote
0answers
2k 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
0answers
943 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 Homebrew....
1
vote
0answers
103 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 ...
0
votes
0answers
110 views

Xcode in Yosemite (10.10.5)

I have Yosemite (10.10.5) and I can't upgrade my Xcode. Basically, I'm interested in use GCC on this SO but in App Store i can't upgrade for Yosemite. P.S: I saw in previous posts that someone has ...
0
votes
0answers
122 views

Using gcc on El Capitan

I installed gcc using xcode-select --install. However, I think it's trying to compile my C code as C++ code. This is what I get when I type gcc --version in Terminal: gcc --version Configured with: -...
0
votes
0answers
31 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
117 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 /usr/local/...
0
votes
0answers
25 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 ...
0
votes
0answers
364 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 ‘--...
0
votes
0answers
83 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 ...
0
votes
0answers
153 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 ...
0
votes
0answers
85 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 ...