Questions tagged [gcc]

GNU Compiler Collection, a family of compilers for various languages from the GNU Project. Questions about gcc should be limited to installation and basic usage/configuration.

299 questions
45
votes
3 answers

How can I update gcc to the latest version in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc 4.6.1. How to update using Ubuntu Package Manager: apt-get upgrade/install As a second option I downloaded the latest gcc snapshot file…
goldenmean
  • 2,527
31
votes
2 answers

gcc unrecognized command line options '-V' and '-qversion' with autoconf

When compiling with gcc 4.7.2 and autoconf 2.69, I am routinely getting results such as these in configure.log. Example: configure:3091: $? = 0 configure:3080: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no…
syrinx
  • 411
29
votes
7 answers

Does Updating to OS X Lion Delete gcc?

I updated to OS X Lion today, and I don't seem to have a copy of gcc any more. Did this happen to anyone else? Does anyone know why this would happen?
14
votes
2 answers

macports gcc select error trying to exec i686-apple-darwin11-llvm-gcc-4.2

I am working on OS X 10.7 (Lion). I have installed gcc 4.7 from macports: sudo port install gcc47 It seems to be working properly: $ /opt/local/bin/gcc-mp-4.7 -v (...) gcc version 4.7.0 (GCC) Now, I am trying to change default compiler by using…
notsurewhattodo
  • 325
  • 3
  • 7
14
votes
3 answers

GCC on OS X Lion with Xcode 4.3.1

After installing Xcode 4.3.1 on OS X Lion, I have lost my GCC compiler. I need this for my study. Does anyone know how I will install this? All I have been able to find was people suggesting to install Xcode 4.3.1 but with the latest Xcode build,…
SimonBS
  • 301
14
votes
3 answers

How to install GCC on Windows 7

I've downloaded GCC 4.5.1 and do not know what to do next. I've found instructions inside the Install directory for how to configure, build and install, but I still cannot do much with this. What are step-by-step instructions to go through this…
11
votes
3 answers

Python 2.6.1, pycrypto 2.3 pypi package: "Broken Pipe" during build

I am attempting to install Fabric, which requires pycrypto. During the build for pycrypto I always receive a "Broken Pipe" error. I don't know where to start to fix the problem. I'm running Mac OS X Snow Leopard 10.6.6, all updates installed; Python…
10
votes
3 answers

Why doesn't '>' redirect error messages from gcc?

I stored the following program in new.c int main() { a; return 0; } It returns an error message. I want to send this message to a file. So I used the following command gcc new.c > temp.txt But still I was getting the output on the…
Alex
  • 201
  • 1
  • 2
  • 5
9
votes
2 answers

How does gcc find the following header file?

I've included sys/ptrace.h into my C program. The output of /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -v gives the following paths where gcc looks for header files #include "..." search starts here: #include <...> search starts here: …
9
votes
5 answers

How to test if gcc is installed?

How can I find out if I have gcc installed on my machine? I am trying to run CodeRunner, but it isn't responding. I know you have to have gcc installed in order for it to work properly. I do have Xcode 4.0.2 installed (from what I've read, if Xcode…
willis0924
9
votes
2 answers

Checking version of GCC compiler in Code::Blocks

How do I check, in Code::Blocks, what version of the GCC compiler am I using?
8
votes
2 answers

Install GCC / G++ Version 4.9 in Linux Mint

I always like to have the latest version of things, particularly if that thing is gcc, g++ and there has recently been a revision to the c++ standard. I have forgotten what ppa's I need to add to my system (I think they come from the Ubuntu…
user3728501
  • 3,404
  • 9
  • 39
  • 54
8
votes
2 answers

gcc not finding header file though its path has been included with -I

I'm trying to install a module (Package::Stash::XS) via cpanm, but the installation is failing due to a gcc error. The command: gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 …
Sundar R
  • 1,539
7
votes
1 answer

What is the difference between the different GCC on Cygwin, and which one to install?

I need to install GCC for Cywin, but I see that there are five different "gcc-g++" packages: cygwin32-gcc-g++ gcc-g++ mingw-gcc-g++ mingw64-i686-gcc-g++ mingw64-x86_64-gcc-g++ What is the difference between them and which one is generally…
laurent
  • 5,774
7
votes
1 answer

brew install gcc /Mac OS 10.9 Mavericks

I'm doing a clean install of Mavericks, and accidentally did brew install gcc which is taking over half an hour, maybe more. Should I terminate it? I know now that I should have installed a specific gcc (maybe gcc48) but it's too late and my…
ehacinom
  • 291
  • 1
  • 4
  • 9
1
2 3
19 20