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
0 answers

Static pointer to class member causes undefined reference

SSCCE of my problem is: class Callee { public: int m1() { return 5; } constexpr static int (Callee::*method)() = &Callee::m1; }; template int call(O &o, int (O::*m)()) { return (o.*m)(); } int main() { Callee callee; …
dyomas
  • 700
  • 5
  • 13
0
votes
0 answers

GCC v.4 compilation error with #pragma omp task (variables with reference type are not permitted in private/firstprivate clauses)

I am porting one large MPI-based physics code to OpenMP tasking. On one Cray supercomputing machine the code compiled, linked and runs perfectly (cray-mpich library, Cray compiler were used for this). Then, the code moved to a server for Jenkins…
user4530988
  • 63
  • 1
  • 7
0
votes
1 answer

How can I avoid GCov limitations on coding style?

I started to use Gcov to analyze my C programs. So I read, in the introduction of GCov documentation,this: "because gcov accumulates statistics by line (at the lowest resolution), it works best with a programming style that places only one…
vnzstc
  • 19
  • 8
0
votes
0 answers

How does compiler optimisation done with respect to this code?

I am getting two different answers in two different compiler . #include #define square(a) a*a main() { int a=3; printf("%d ",square(a++)); printf("%d ",square(a--)); } In gcc 4.x versions output is 9 and 25 In newer gcc 12 and…
Anjaneyulu
  • 434
  • 5
  • 21
0
votes
1 answer

No Matching Function - Specialized Signature hiding Generic?

I just got stuck with the following C++ compiler error: no matching function for call "EPTDerivedException::HandleClass( BaseClass& )" candidates are: void EPTDerivedException::HandleClass( DerivedClass ) I cannot explain this, because there should…
Charly
  • 3
  • 1
0
votes
1 answer

Ubuntu undefined reference error

I'm trying to compile a program written on C++. I got this message error: undefined reference to `escapeXMLChars(std::__cxx11::basic_string, std::allocator >&)' I've searched and found this post: Undefined…
PhuongLM
  • 91
  • 2
  • 9
0
votes
1 answer

difference beween armv7 and armv7a in poky meta source

Initially I was assuming that armv7 and armv7a both are same, but while checking the meta/conf/machine/include/arm/arch-armv7a.inc file in the poky meta source, following statement says armv7a is conflicting with armv7. TUNECONFLICTS[armv7a] =…
Ravi A
  • 421
  • 2
  • 9
  • 21
0
votes
1 answer

Linker error with shared_ptr_base.h and gnu-libstdc++ 4.9 / 4.8

I try to compile https://github.com/personalrobotics/OpenChisel/tree/master/open_chisel to use it for rendering on a google tango device I've tried to compile it for Android 4.4, ndk r10e and NDK_TOOLCHAIN_VERSION=4.9 (gcc 4.9) with the following…
bashbug
  • 556
  • 4
  • 16
0
votes
2 answers

Connecting kdb+ to R

I'm trying to run a make file to install qserver on my OSX machine. The make file gives me an error when I try to run. see code below: make /Library/Frameworks/R.framework/Resources/bin/R CMD gcc -g -O -fpic -m64 -shared -D KXVER=3 -I.…
0
votes
1 answer

OS X 10.11 (El Capitan) Macport issues

I tried to run $ sudo port upgrade outdated on my Mac and had build issues with: gcc48, texlive-bin clang-3.5 clang-3.7, etc. Macports has some of the issues I've encountered: https://trac.macports.org/ticket/48471 I tried applying the patch…
dbl001
  • 2,259
  • 8
  • 39
  • 53
0
votes
1 answer

How to link static libs (archives) to an empty dynamic lib with GCC4

I'm using GCC on Linux to create a shared library. The library itself has no code but links to a couple of static libraries (archives) also built using GCC. I need to export the static libs' symbols through my shared library. What happens is that…
user360607
  • 363
  • 1
  • 5
  • 14
0
votes
1 answer

cannot configure MPICH. The selected Fortran 90 compiler gfortran does not work with the selected Fortran 77 compiler gfortran

Experts: Am trying to configure MPICH-3.2b1 with this command: ./configure --prefix=/usr/local/mpi64-32-mpich CFLAGS="-m64" FFLAGS="-m64" CC=gcc FC=gfortran ... configure: error: The selected Fortran 90 compiler gfortran does not work with the…
DrLou
  • 649
  • 5
  • 21
0
votes
2 answers

pow doesn't accept the second parameter to be a variable on gcc

pow doesn't accept the second parameter to be a variable on gcc The following code works fine on VC++10 // file test.cc #include "stdafx.h" #include #include int main(void) { double x = 10; int y = 20; …
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
1 answer

gcc-4.8.2 doesn't link pthread

all. Compiling simple stuff using the gcc toolchain for several years, today I ran against a curious phenomenon. I installed Kubuntu 14.04 to a common desktop i686 machine with gcc 4.8.2 in it. But then, trying to build some well coded stuff pulled…
Mikes
  • 21
  • 2
0
votes
1 answer

tcl8.5.10 make fail error, Network Simulator2 v2.35 (Cygwin v1.7.32) in Windows 8

during installation of NS2 v2.35 (Cygwin v1.7.32) in Windows 8 i keep getting this error message: Package gcc4 is not present on your system. Please install it using Cygwin's setup.exe before trying to install the ns-2 distribution. I tried…
Shubham Badal
  • 1,125
  • 13
  • 33