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
185 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
113 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
766 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
483 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
596 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
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
157 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
603 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
151 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
457 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
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
859 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 ...
1
vote
0answers
102 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
31 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
69 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
29 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
89 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
0answers
24 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
353 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
79 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
146 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
84 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 ...