GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and older versions of OS X.
1
vote
1answer
23 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 ...
2
votes
1answer
40 views
How to install g++-45 with Homebrew
I have installed gcc45 by using brew tap homebrew/versions & brew install gcc45. However, I can not find g++-4.5 in /usr/local/bin. How can I install g++-4.5 separately by Homebrew? Thanks.
My ...
-1
votes
0answers
49 views
How to compile LaTeX on Mac OS X? [closed]
How can I compile LaTeX on Mac OS X Mountain Lion? I know there are pre-compiled version of the soft that can be found on the Internet, but I actually want to compile LaTeX (to be able to test some ...
1
vote
0answers
149 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 ...
30
votes
4answers
29k views
How do I install GCC via Homebrew?
I am using Homebrew exclusively (i.e. I don’t, and won’t, use MacPorts or Fink). I also want to keep manual installations to a bare minimum.1
… But how can I install GCC?
First of all, I’ve of ...
-1
votes
1answer
133 views
gcc vs. llvm, compiling c++ code, migrating from linux [closed]
i'm migrating from linux machine to mac os x. I was used to write c++ application (for opengl and opencv application mainly) using vim as editor.
Now, i have installed XCode on a new 10.8 mac os x ...
1
vote
0answers
151 views
Problems with gdb 7.5.1 debugging executable built via g++ 4.7.2 [closed]
I've been updating my Mac toolchain in order to take advantage of C++11 features and eventually get pretty-print debugging of STL data structures. I used Homebrew to build the gcc 4.7.2 compiler. I've ...
14
votes
1answer
4k views
How to compile mod_wsgi, mod_fastcgi, etc on Mountain Lion by fixing `apxs:Error: Command failed with rc=65536`?
I've updated to OS X Mountain Lion.
Update has removed all of my python and apache modules including mod_wsgi.
Now I'm trying to recompile mod_wsgi (it compiled without problems on Lion).
I use ...
1
vote
2answers
267 views
How to compile gcc-4.0 on Mountain Lion?
So far I've successfully launched the configure, but when I type make, I get the following error, after some time (there's a lot which compile successfully):
ld: unknown/unsupported architecture ...
8
votes
1answer
2k views
Why does it appear that I apparently “do not have access to Command Line Tools” in ML?
I just upgraded to Mountain Lion, and now gcc, make, g++, etc. are not found when trying to launch them in Terminal.
So I went to Xcode Preferences, Downloads, and clicked "Install" next to Command ...
0
votes
1answer
142 views
(new) Compiler for (old) XCode
My OS X does not allow me to update to current XCode software.
With the new XCode and iOS SDK, the sourcecode is compiled with a newer compiler which has some new syntax options which are missing on ...
5
votes
2answers
3k views
Which version of gcc is on Mountain Lion?
I am looking forward to migrate my c++ code to C++11, which might requires at least g++ 4.6.
So what is the GCC installed on Mountain Lion?
2
votes
2answers
2k views
Can Xcode compile C programs?
For the last couple of hours, I have been trying to find and install a gcc compiler so that I can compile C programs using eclipse C/C++ IDE. Eclipse doesn't come with a compiler, so I tried to find ...
0
votes
2answers
2k views
Xcode update for 10.6.8
I would like to use a newer version of Xcode (current version on my system is 3.2.4) and the command line tools (gcc & make).
I have tried to install Xcode through the Mac App Store, however I ...
1
vote
3answers
3k views
Where can I find gcc in Xcode 3.2.6?
I have a Mac with OS X 10.6.8 Snow Leopard. I'm trying very hard to learn the basics of programming in C, but I can't get my first simple program to run.
I read online to go to Xcode Preferences -> ...
2
votes
0answers
181 views
C and C++ executables freeze in Lion, remotely hosted on Ubuntu box [closed]
I'm trying to compile and run some very simple C and C++ code in Lion. Compilation works fine. Running the executable leads to the 'spinning beach ball of death.' Force-quitting out of Terminal ...
6
votes
2answers
7k views
GCC not found, but Xcode is installed
I have Xcode installed, but when I type gcc in terminal I get "command not found". Maybe I messed up the $PATH variable? What is suposed to be the default value?
EDIT:
(...):/ imac2$ echo $PATH
...
8
votes
3answers
2k views
I installed Xcode but I still don't have gcc in my terminal
I just got a Mac and I'm a complete newbie, so this may be kind of a really easy question, but I wasn't able to solve it with Google or F1.
I was trying to run a C program from the Terminal that ...