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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
260 views

Why do MinGW and MSYS have separate versions of gcc?

This is my understanding of the relationship between MinGW and MSYS. When installing MinGW and its gcc toolchain, installing MSYS is optional. With MSYS installed, you get bash and a few other tools ...
OregonTrail's user avatar
3 votes
2 answers
15k views

MinGW gcc missing zlib1.dll

Whenever I try to compile a C file using MinGW's gcc, it gives the error that zlib.dll is missing. Is there any reliable way to get zlib.dll or to fix this error?
sainteven's user avatar
3 votes
0 answers
387 views

How to create symbol versioned functions in an so file in Fedora?

Due to the following bug in Fedora: http://forums.fedoraforum.org/showthread.php?t=296524 I decided to compile my own versions of zlib and libpng. But after doing so, I realized that libcairo could ...
Dov Grobgeld's user avatar
7 votes
1 answer
10k views

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 ...
ehacinom's user avatar
  • 251
8 votes
2 answers
26k views

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 ...
user3728501's user avatar
  • 2,774
4 votes
2 answers
16k views

Making Google Chrome 35 work on CentOS 6.5

I am trying to install Google Chrome 35 on my CentOS 6.5 . After googleing for few hours I found that Google has decided not to support EL 6 release anymore. Due to which I get following error. ...
Chintan Shah's user avatar
1 vote
1 answer
592 views

Slackware ./configure error

I'm new to slackware. i'm trying to install freetds on my slackware 14.0 but i get this error when i run ./configure config.log say: gcc: error: unrecognized command line option '-V' gcc : fatal ...
user avatar
0 votes
1 answer
4k views

Error compiling gcc on Raspberry Pi

So, after solving the problems I had before (previous question here), I'm having some other trouble compiling gcc 2.95.3 on my Raspberry. This is what I get with the make bootstrap command. ../../...
Harlandraka's user avatar
0 votes
1 answer
1k views

Error compiling gcc on Raspberry Pi (Raspbian): make: *** [bootstrap] error

I'm trying to compile the gcc version 2.95.3 on raspbian, I need it in order to compile the 2.6 kernel. I'm following this tutorial, but when I get to the bootstrapping step, i get make[1]: Entering ...
Harlandraka's user avatar
1 vote
1 answer
4k views

Downgrade GCC to older versions with apt-get

For specific reasons, I have to downgrade my GCC to version 2.x using apt-get (not downloading and compiling the source). Is that possible? If yes, how can I find the repository address and install ...
Afshin Mehrabani's user avatar
2 votes
1 answer
5k views

Upgraded to Mavericks, C compiler cannot create executables

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to ...
dfaulken's user avatar
-1 votes
4 answers
3k views

Do different compilers produce different machine code file formats for Windows? [closed]

Under Windows, if someone compiled a C++ source code with gcc, would the output file formats and extensions be different from other C++ compilers? And are the output files extensions and formats of C+...
user3576560's user avatar
0 votes
1 answer
64 views

Invalid macro expansion argument character

I am attempting to compile pooler-cpuminer and when running make I get this error: sha2-arm.S:190:invalid macro expansion argument character (+) Any help? I've looked and haven't found a solution ...
teknogeek's user avatar
1 vote
0 answers
2k views

XCOFF32 object files are not allowed in 64-bit mode while installing Crypt-SSLeay-0.65_02

I am installing a Perl package Crypt-SSLeay-0.65_02 in an AIX 6.1 system but while performing perl Makefile.PL getting the following error. The test suite can attempt to connect to public servers to ...
Ajit Nair's user avatar
  • 111
1 vote
0 answers
1k views

install latest gcc on rhel 6 x86_64

I have an RHEL 6 server with gcc version 4.4.7. I wanted to update the gcc version (I think the current one is 4.8). Yum update doesn't work. Also, SO answers for a similar question on CentOS does not ...
rivu's user avatar
  • 271
2 votes
1 answer
207 views

gcc 4.8 on MacOS fails depending on -arch order

I am trying to get a recent version of gcc 4.8.2 up on my machine. I have tried installs that come from MacPorts as well as the one that gets installed alongside the binary install of gfortran. For ...
Andrew Jaffe's user avatar
1 vote
0 answers
2k views

gcc --as-needed linker flag not working

I have two computers with Gentoo, both on AMD64. I try to build a following program: int main() {tgetent();} The command to compile is: gcc -v 1.c -Wl,--as-needed -lncurses On one computer it ...
aikipooh's user avatar
3 votes
2 answers
682 views

Using gcc (>= 4.8) with OBS (OpenSUSE Build Service)

I am currently using the OpenSUSE Build Service (https://build.opensuse.org/) to build ArangoDB. However, for some newer C++ features I need a fairly current C++ compiler. For some of the older ...
fceller's user avatar
  • 81
1 vote
1 answer
983 views

How to install gcc 4.4.7 on Mountain Lion

I need to install a specific version of the GNU GCC compiler, gcc 4.4.7, on my macbook, but I'm not sure how to do this. Most places I've found install later versions but I need to install that ...
user avatar
2 votes
1 answer
2k views

How do I install GCJ on OSX

I've looked at the gcj page and though there's downloads links they're only for downloading gcc, and with the apple version of gcc there is no gcj included: $ gcc --version Configured with: --prefix=/...
stib's user avatar
  • 4,309
1 vote
1 answer
8k views

linker error: could not read symbols: Invalid operation

I am trying to compile GMediaRender on Ubuntu 12.04. I got an error during make: gcc -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -L/usr/lib -o gmediarender main....
laplasz's user avatar
  • 159
0 votes
1 answer
170 views

Compiling Opensmmpbox in Cygwin for windows service

Need a opensmppbox as a windows service so i try to compile it under cygwin...get this error: /usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lwap /usr/lib/gcc/i686-...
peak Tom's user avatar
1 vote
2 answers
775 views

Unable to install TI Linux emulator on Linux Mint 16 KDE

I have Linux Mint 16 KDE, and I wanted to install the Texas Instruments Emulator from http://lpg.ticalc.org/prj_tilem/download.html. I downloaded and extracted the source code, and installed all the ...
ClearSky's user avatar
0 votes
1 answer
3k views

Use scons with gcc 4.7 on CentOS 6

I followed the instructions at How to Install gcc 4.7.x/4.8.x on CentOS for installing gcc 4.7.2 under /opt/centos/devtoolset-1.1/root/. Now I'd like to build a project which is configured to use ...
Daniel's user avatar
  • 121
1 vote
2 answers
1k views

Error while loading shared libraries - libwebsock

Im trying to setup libwebsock, simple C websocket library. I followed the installation procedure from INSTALL file, everything went fine. Im able to compile test program given in the examples. But ...
noisy cat's user avatar
  • 113
1 vote
1 answer
732 views

gcc-4.8.2 make command error

our server has "gcc-4.4.7-3.el6.x86_64" I was trying to upgrade to "gcc-4.8.2" from source. configure completed without errors make command has reported following errors in config.log file : ...
Vaibhav Kulkarni's user avatar
3 votes
1 answer
5k views

Uninstall gcc from source

For fun, I compiled and installed gcc 4.7.2 in ~/build, which contains bin, doc, lib, include, man, share, et al. directories, all of which are added to the appropriate environment variables. Now I ...
tsbertalan's user avatar
0 votes
1 answer
598 views

What does dynamic vs static linking

When it is said that in dynamic linking the linker resolves the addresses of shared libraries at run time, does that mean the same linker that is used in static linker is called at run time? For ...
Celeritas's user avatar
  • 8,229
3 votes
3 answers
7k views

Gentoo LDFLAGS optimizations really needed?

I'm using Gentoo Linux. Here is my toolchain: sys-kernel/linux-headers-3.9 sys-devel/binutils-2.23.1 USE="cxx nls zlib -multislot -multitarget -static-libs {-test} -vanilla" sys-devel/gcc-4.7.3-r1:...
user2868193's user avatar
0 votes
1 answer
463 views

Cant compile SDL source file with gcc

i downloaded a manual of introduction to graphics programming with SDL, so i tried to compile my first source and it logged the next error the command to compile it was: $ gcc helloWorld.c [-o ...
user2843739's user avatar
0 votes
1 answer
4k views

update gcc /g++ on CentOS 5.9

I would like to update gcc/g++ on my CentOS 5.9. The version I have is 4.1.2 : Would it be possible to update it to 4.4.7 like CentOS 6.4 WITHOUT updating the entire operating system? It looks to me ...
Abruzzo Forte e Gentile's user avatar
0 votes
1 answer
993 views

GLIBCXX 3.4.14 missing for Garry's Mod on CentOS

When installing Garry's Mod via Steam on my CentOS server I get the following errors: -- ConVarRef mat_dxlevel doesn't point to an existing ConVar Game_srv.so loaded for "Garry's Mod" ...
cvdeeden's user avatar
1 vote
2 answers
1k views

Change GCC version on Mac OSX Lion

I'm currently running GCC 4.2. I would like to switch to a more recent version. I have Homebrew and I have MacPorts for package management. I've followed several tutorials today for installing a ...
Donny P's user avatar
  • 111
8 votes
2 answers
16k views

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 ...
Sundar R's user avatar
  • 1,459
2 votes
2 answers
3k views

Building GCC and Binutils on Windows 7 x64

I am trying to build GCC following the instructions in: Building GCC. At the moment I am building binutils but getting the error: * BFD does not support target x86_64-unknown-cygwin. * Look in ...
User's user avatar
  • 175
1 vote
2 answers
393 views

Configure Makefile

I am trying to create a file Makefile to use with make so I can compile my codes faster. What I would like to do is just type in the terminal: make dev myOutputName And it should run: gcc -Wall -...
user avatar
1 vote
2 answers
4k views

RHEL Desktop: How to install g++?

I would like to install the gcc-c++ package on RHEL 6. When I search for it with yum, I get No matches found. Searching for it on the web, it seems that I need the workstation sub-channel. However, I ...
jgillich's user avatar
  • 1,040
0 votes
1 answer
68 views

When was gcc last updated in my system?

Is it possible to know the last update date of gcc in Centos? If yes, how can it be checked? The problem is that one my applications, which used to run before in gcc, is not running in gcc.
Rishi's user avatar
  • 123
3 votes
1 answer
4k views

Installing a GCC/G++ for my mac OSX 10.8

My problem is simple, I would like to get the OSX/BSD version of the GCC and G++ compilers from the GNU.org website. However after some research (as described below) I learned that Apple uses LLVM ...
Ash's user avatar
  • 145
1 vote
2 answers
2k views

downgrade gcc/g++ after upgrading; compiler error

I just upgraded gcc/g++ from 4.4 to 4.8 (via this method How can I update gcc to the latest version in Ubuntu 10.04?). I realized that 4.8 is going to break a lot of my code and now I want to roll ...
tir38's user avatar
  • 2,731
2 votes
1 answer
5k views

How to install an old version of gcc using yum on fedora 18?

I want to install gcc 3.6 on fedora 18. when I do yum install gcc I get the gcc 4.7. but I want an old version.
becks's user avatar
  • 135
-2 votes
1 answer
5k views

OSX zsh - Why do binaries only execute with the full path? [duplicate]

I'm just writing some small C scripts and testing them. Why dose ~ Desktop: gcc test.c -o test ; /Users/xx/Desktop/test ; work just fine while ~ Desktop: gcc test.c -o test ; test ; dose not work?...
wowpatrick's user avatar
  • 4,389
10 votes
3 answers
11k views

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 > ...
Alex's user avatar
  • 201
0 votes
1 answer
594 views

Cygwin - gcc-java installed but cannot call

I'm running Cygwin on Windows 7, with environment variables set up correctly (as far as I can tell). When I do this gcc-java shows up: cygcheck-c .. gcc-core 3.4.4-999 OK gcc-...
Yerval Ternus's user avatar
6 votes
1 answer
12k views

GCC 4.8.1 failed complilation

I am using Ubuntu 13.04 64 bit. This is the error message: checking for x86_64-unknown-linux-gnu-gcc... /home/hoangtu/Downloads/gcc-4.8.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/hoangtu/...
Amumu's user avatar
  • 473
2 votes
1 answer
721 views

Libraries which exist in a binary's elf DT_RUNPATH are not being chosen?

I have custom built gcc-4.7.2 in my environment. The system gcc is gcc-4.3.4. I have patched the DT_RUNPATH for all my custom gcc's binaries and shared libraries using patchelf --set-rpath However, ...
Steve Lorimer's user avatar
1 vote
1 answer
2k views

Run local GCC on remote linux server

I'm sure this has been asked before but after some time searching I'm not finding quite what I want. I have a test server that I cannot install GCC or other development needs on. On my development ...
FaultyJuggler's user avatar
2 votes
3 answers
2k views

Bootstrap error while compiling GCC 4.8.0

I'm getting bootstrap errors while trying to install GCC and could use some help. I'm trying to compile GCC in my home directory on a shared system (cluster). The cluster has GCC 4.4.3, which I'm ...
Douglas B. Staple's user avatar
1 vote
2 answers
359 views

GCC running version doesn't match emerged version

Here is the output from my portage search for gcc: emerge -s gcc ... * sys-devel/gcc Latest version available: 4.6.3 Latest version installed: 4.6.3 Size of files: 70,353 kB ...
Athan Clark's user avatar
1 vote
1 answer
4k views

Error installing GCC on Fedora

I've been trying to install GCC on Fedora 18. Here is a direct excerpt from my terminal window: ishan@localhost ~]$ sudo yum install gcc gcc-c++ Loaded plugins: langpacks, presto, refresh-packagekit ...
Ishan's user avatar
  • 433