Questions tagged [gcc-4.2]

Version 4.2 of GCC (GNU Compiler Collection). GCC is the de facto standard C compiler on Linux (but modern versions of Linux do not use version 4.2). The compiler collection supports many other languages and platforms as well.

Version 4.2.0 was released on 2007-05-13. Version 4.2.4 was released on 2008-05-19.

See also:

12 questions
22
votes
8 answers

gcc-4.2 failed with exit status 1

I've been looking for an answer to this issue but I couldn't find it, so here it is. I'm trying to install Uniconvertor with a setup.py file into a MacOS X Lion (Python 2.7.2) using: python setup.py install Then I get the following error…
valcox3
  • 221
  • 1
  • 2
  • 5
7
votes
3 answers

Xcode 4.2 Code Coverage

I started to use Xcode 4.2 and i have problems with generating code coverage. Xcode 4.2 does not include the GCC 4.2 compiler, but it was replaced with the LLVM GCC 4.2 compiler. The first one was needed to generate code coverage in the previous…
Mats Stijlaart
  • 5,058
  • 7
  • 42
  • 58
7
votes
6 answers

Why does sqrt() work fine on an int variable if it is not defined for an int?

In chapter 3 of Programming: Principles and Practice using C++ (sixth printing), Stroustrup states (p.68): "Note that sqrt() is not defined for an int". Here is a simple C++ program based on that chapter: #include "std_lib_facilities.h" int…
user82216
3
votes
4 answers

How to use gcc 4.2 with Xcode 4.2

I need to use gcc 4.2 with Xcode 4.2 for some older code. How do i get it to show up. Xcode4.2 seems to have dropped support for it. Thanks
tech74
  • 1,609
  • 1
  • 20
  • 39
1
vote
3 answers

c++ error; how should i interpret its meaning?

This may be a silly thing to ask but I am confused with compilation error while trying to use the safe bool idiom while reading this article. Below is my code and I have indicated the lines where i get errors in main() function. // is OK case class…
Abhinav
  • 1,496
  • 3
  • 15
  • 31
1
vote
0 answers

How to get statically linked binaries after gcc downgrade

I'm not a linux expert but I'm running into the following problem which I hope to get solved here. My system has gcc 4.4 and I had to install an older version of gcc (gcc 4.2) on my home space so I can build a simulation tool. Anyway, everything…
arrazem
  • 11
  • 1
0
votes
1 answer

How to build simuPOP on Mac OS X with python3?

I spent a full week trying to find out how to fix this problem, but I can't figure out how to do it. I get the following error: MacBook-Pro-van-Hakim:Modules MvZB$ tar zxf simuPOP-1.0.6-src.tar.gzMacBook-Pro-van-Hakim:Modules MvZB$ cd…
FlyingDutch
  • 1,100
  • 2
  • 14
  • 24
0
votes
1 answer

"Expected function body after function declarator " compiled using GCC in Terminal

I am trying to compile following program using GCC in terminal // // fileCopy.c // // // Created by Saurabh Saini on 14/02/18. // #include int main(){ int c; c = getchar(); if(c!=EOF){ putchar(c); c = getchar(); } return…
0
votes
1 answer

Enumerations cause binary change with optimizations in Gcc 4.2.4

I am using GCC version 4.2.4. The issue explained below can't be reproduced on Gcc 4.6.x and these are the only two versions I tested. I have an header file that defines enumerations, Header: abc.h enum test { VALUE_1 = 1, VALUE_2 = 2, …
Akamai
  • 117
  • 1
  • 11
0
votes
1 answer

Error : Unsupported compiler 'GCC 4.2' selected for architecture 'i386'

I have downloaded zxing sdk. in that their a sample code called scantest i am trying to run that sample code in xcode 4.6.2 but it give me error. "Unsupported compiler 'GCC 4.2' selected for architecture 'i386'" i am trying i am not getting solution…
0
votes
2 answers

Install numpy on Snow Leopard

When I try to install numpy over a python.org python2.6 installation, I get these errors on my OS X terminal. sh: gcc-4.2: command not found And this causes failure. I noticed a pastebin (http://pastebin.com/hieSKe3A) already on this issue but I'm…
Navneet
  • 9,590
  • 11
  • 34
  • 51
-1
votes
1 answer

Need help installing PIL to use Django ImageField

I am a novice at these things. I have been all over the internet looking for a way to get around this error : unable to execute gcc-4.2: No such file or directory error: command 'gcc-4.2' failed with exit status 1 When trying to install the Python…
Carl W.
  • 573
  • 3
  • 8
  • 13