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
1
vote
2 answers

Installing SystemC 2.2.0, compilation with GCC 4.6 and package for Fedora

How to install SystemC on Fedora 15? Problems: no RPM package (licensing problems) does not compile with 4.6 even with -fpermissive (clang doesn't compile your modules)
Paweł Prażak
  • 3,091
  • 1
  • 27
  • 42
1
vote
1 answer

How to enable Loop tiling in gcc?

How to compile a code using gcc, which performs loop tiling (Blocking) ? The -O3 optimization by default does not do loop tiling. I need to enable loop tiling in this flag and also, find out the tile factor. (E.g. cubic tiling or rectangular tiling)…
psteelk
  • 1,305
  • 3
  • 16
  • 24
1
vote
1 answer

Undefined Symbols when linking against a mixed C and Fortran in OS X 10.6.4

I'm trying to compile a code (not mine) that consists of mixed Fortran and C source files, which are compiled into a library. This library can either be linked against directly, or (more usefully) driven from a python class. I have previously…
1
vote
1 answer

Declaring and initializing a completely `const` `char *argv[]`

I tried assigning the argv value to a constant pointer, believing that it's safe to assign a non-const to a const variable. Unfortunately gcc complained: > make CFLAGS=-Wall mein cc -Wall mein.c -o mein mein.c: In function ‘main’: mein.c:5:30:…
U. Windl
  • 3,480
  • 26
  • 54
1
vote
2 answers

Check wheter atomic ptr is not initialized in gcc 4.4.7 (without nullptr)

During re-factorization of singleton class to be thread safe (fallowing Herb Sutter advice how to write proper double-check locking) I came across problem with my version of compiler (gcc 4.4.7 with --std=c++0x flag) supporting atomics but not…
scadder
  • 11
  • 2
1
vote
4 answers

Strange GCC6 optimization with builtin function

With GCC6 and the code snippet below, this test if (i > 31 || i < 0) { is false, and this printf is executed printf("i > 31 || i < 0 is FALSE, where i=%d", i); and produces this very weird output (GCC6): i > 31 || i < 0 is FALSE, where i=32 /*…
Bludzee
  • 2,733
  • 5
  • 38
  • 46
1
vote
2 answers

gcc-4.4.0-1aix5.3 missing dependency libgmp, libmpfr

I am trying to install gcc-4.4.0-1 on Aix 5.3 system(64 BIT). I have installed MPFR 2.0 and LIBGMP 4.3 and can see libgmp.a and libmpfr.a in /usr/lib. I also used --enable-shared option and can see libgmp.so.3 and libmpfr.so.4 in /usr/lib. LIBPATH…
confused
  • 147
  • 3
  • 15
1
vote
1 answer

Template specialization ambiguity: either specialized or original method may be linked

Look at base::m_visible method in tps.hpp (it's «default»): #include #include template struct base { void m_log() const; void m_visible() const; }; struct inheritor: base { void log()…
dyomas
  • 700
  • 5
  • 13
1
vote
1 answer

Building Boost 1.57.0 with GCC 4.0: ld: can't map file, errno=22

I'm trying to build boost 1.57.0 with gcc 4.0 on mac. I first found this website, but I got a number of linker errors when I tried that. I then found this question which allowed me to fix those linker errors, but I'm still getting more that I can't…
1
vote
1 answer

Will app built with gcc 4.x on CentOS/RHEL 4.8 run on completely un-updated CentOS/RHEL 4?

We have a commercial application that we build on 32-bit CentOS 4.8 (equivalent to Red Hat Enterprise Linux (RHEL) 4 update 8. The default gcc compiler is at 3.4.6 We are able to run our binary on both 32- and 64-bit CentOS/RHEL 4 and 5 including…
lcbrevard
  • 263
  • 1
  • 12
1
vote
1 answer

Cannot take string input properly in gcc ubuntu linux

What is wrong in this program?? I am trying to figure out since 2 days but no help at all!! String output is only after string input and after selecting choice, default string input is new line character by default i guess. Besides if i type string…
1
vote
0 answers

postgresql does not build with cc flags -fwrapv -fno-strict-aliasing

I'm trying to build Postgresql9.3.9 on Linux box with GCC version 4.4.7 installed. The configuration part is going smoothly with command: ./configure --prefix=/apps/php/postgresql-9.3.9 --enable-thread-safety --without-readline --without-zlib…
sebick
  • 11
  • 3
1
vote
0 answers

ld: Assertion failed: (symbolIndex != INDIRECT_SYMBOL_LOCAL)

I'm trying to build my project that uses MacOS SDK 10.4. On Yosemite and XCode 6.4 everything is ok. But on El Capitan and XCode 7 i've got a strange error. 0 0x10d7527e2 __assert_rtn + 144 1 0x10d75c8fb …
JeKich
  • 13
  • 3
1
vote
1 answer

GCC gives confusing warning message when using pointer to struct

On compiling the following C program, GCC emits a warning message which is somewhat confusing. Program Source #include typedef struct { int x; } dummy_t; void myfunc (dummy_t *pointer) { printf("x = %d\n", pointer->x); } int…
Anant
  • 222
  • 2
  • 8
1
vote
0 answers

cannot create executables gcc: ./specs is a directory

I am trying to compile libXaw-1.0.10 , and while configuring i get: gcc: ./specs is a directory I tried to compile a basic helloworld.c and when i created "specs" directory, my compilation failed! What is the cause for this behaviour ? this …
Puneet S. Chauhan
  • 745
  • 1
  • 8
  • 17