Questions tagged [gcc4]

Version 4.x of GCC (GNU Compiler Collection). It's the de facto standard C compiler on Linux and supports many other languages and platforms as well.

Version 4.0.0 was released on 2005-04-20. Version 4.9.4 was released on 2016-08-03.

See also:

184 questions
0
votes
3 answers

high_resolution_clock's highest resolution is 1000ns

I'm doing work involving benchmarking algorithms. I read about the new header in C++11, so I went with that. I can take measurements and everything, but I am struggling with resolution. When doing something like auto duration =…
getack
  • 172
  • 7
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
2 answers

how to check installed gcc has some flag configured?

How to check if the installed gcc has any of the flags enabled in configuration. E.g. I want to check if the installed gcc has this --enable-__cxa_atexit flag enabled ? I have Ubuntu 12.04 & gcc 4.6
Vijay C
  • 4,739
  • 4
  • 41
  • 46
0
votes
1 answer

import of python module which is in C++ compiled with gcc 4.4.3

I am trying to develop a C++ module that is called from Python. I have written a test case, but when I try and tun the python the import fails with Traceback (most recent call last): File "testHull.py", line 1, in import…
0
votes
1 answer

Building the FBX SDK on Linux

Trying to get one of the samples compiled on Ubuntu 12.04 I’m using make -f Makefile-x64-static However, I get the error make: gcc4: Command not found I tried switching from gcc4 to gcc in the makefile. However, I get the compile errors note:…
Cairo
  • 321
  • 1
  • 17
0
votes
1 answer

Impact on upgrade gcc or binutils

I want to use Red Hat Enterprise Linux 5.8 to compile folly, and gcc is 4.1.2. But folly needs gcc >=4.6. So I need to upgrade gcc to 4.6, maybe binutils etc. If new toolchain generates binary files such as *.a *.so, would running them on old Red…
wande
  • 33
  • 1
  • 1
  • 4
-1
votes
1 answer

gcc 4.6.2 installation with cloog and ppl

I want to install gcc 4.6.2 with cloog and ppl. I have both the libraries installed in my system. When I try to do ./configure --enable-languages=c,c++ --with-ppl=/usr/lib --with-cloog=/usr/lib, I get an error Cannot find the directories…
psteelk
  • 1,305
  • 3
  • 16
  • 24
-1
votes
2 answers

How to control or optimize or remove or deallocate unused memory in UNION's

This question about how to control or optimize or remove or deallocate unused memory in unions? We know that the union size is maximum data type descaled inside union. Suppose I declared long type then it allocates 64-bytes of memory but I used only…
-1
votes
1 answer

Translate Inline Assembler of Codewarrior to GCC Inline Assembler

I am working on a task to move a big project from old Codewarrior IDE to S32DS from NXP, which use a compiler of GCC 4.9. Unluckily I have big troubles to compile the inline assembley code in S32DS, since the grammar of inline assembley are quite…
-1
votes
1 answer

Finding gcc location

I am on a cluster and do not have root permission, I am new to linux. I wish to run a tool with a gcc 5 version or less. My default gcc version is 6.3.0. But there is another version of gcc (gcc 4:6.3.0-4) on the system. I am trying to find its…
user1609160
  • 69
  • 1
  • 4
-1
votes
2 answers

compile cross gcc: cannot compute suffix of object files: cannot compile

I was following the instructions to build my own compile toolchain on my os x,and I do exactly what they suggested.But when I compile the gcc , the command is 'make all-target-libgcc' ,the error shows up . I think I had compile the binutil…
J.d.sn
  • 19
  • 6
-1
votes
2 answers

Using isnan in template function

I have following code: template int double_to_bulk(double value, char* buf, double max_num, int* state = NULL) { if (isnan(value)) { //Something…
Arkady
  • 2,084
  • 3
  • 27
  • 48
-1
votes
3 answers

When Compiling wxWidgets with MinGW, Directory and Filename are getting Garbled

I am trying to compile wxWidgets using MinGW, and am having problems. I will ultimately be using MinGW from within Code::Blocks, but for now, I am simply compiling using the command line because that's what all the examples I see online do. The…
-1
votes
1 answer

typecasting in c between data types string and unsigned long

I am using 64 bit gcc compiler on a intel machine to compile following code void main(void) { unsigned long L = 1, R = "123"; printf("%s %lu %lu", "1st",L, R); printf("%s %d %s", "2nd", L, R); } I get following output 1st, 1,…
prattom
  • 1,625
  • 11
  • 42
  • 67
-1
votes
4 answers

What is the maximum size of signed long long data type in 32 bit Linux

I am trying to run the below program in 32 bit Linux platform. int main() { unsigned long long val = 0; val = 140417 * 100000 + 92 + 1; } The output is some garbage value (1156798205). After some research, I found…
Ullan
  • 1,311
  • 8
  • 21
  • 34
1 2 3
12
13