Questions tagged [gcc4.7]

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

Version 4.7.0 was released on 2012-03-22. Version 4.7.4 was released on 2014-06-12.

See also:

136 questions
0
votes
1 answer

Lexical Analysis in GCC for C language

I am looking for the lexical analyzer code in GCC for C language but unable to find. I found lex.c but the comment inside the file says it works for C++. Please provide any link(If available) which can help.
anuj pradhan
  • 2,777
  • 4
  • 26
  • 31
0
votes
2 answers

False "value computed is not used" warning

I'm maintaining some ugly legacy code with the following function and I am getting warning: value computed is not used for the lines marked by comments below: void ReadKeyValuePipe(char* buffer, char* key, char* value) { char* pos; char…
Chris Redford
  • 16,982
  • 21
  • 89
  • 109
0
votes
0 answers

std::map fails in gcc 4.7.4

I puzzled over a simple piece of code which relates to gcc 4.7.4 installation issues or may be to an existing bug in gcc itself...? std::map does not work, the sample code below where Key, Value are both integers fails in less < operator. I have…
0
votes
1 answer

Unable to locate library liboleaut32 in Linux Mint 15

I'm using Mint 15, I'm a total noob when it comes to compiling softwares, but I'm trying to compile the "infinite-qt" GUI from the Git repo. I managed to get "infinitecoind"(daemon) compiled, using the 'Makefile.unix' file. What I'm trying to do now…
0
votes
1 answer

Gcc compile hello.c for c6x

I compiled hello.c program for c6x architecture: gcc-4.8 -o hello -march='c64x' hello.c But It got an error: error: bad value (c64x) for -march= switch Seem gcc can't recognize c64x architecture! I am using Ubuntu 12.04 LTS & gcc-4.8 version. Thank…
cxphong
  • 847
  • 2
  • 9
  • 18
0
votes
1 answer

I have libstdc++6-dev but still have stl linked error

My gcc version is 4.7 This is my simple source code: I installed libstdc++6-dev, I think it should include stl #include #include #include typedef…
user504909
  • 9,119
  • 12
  • 60
  • 109
0
votes
1 answer

C++ std::regex implementation in different compilers

Consider the following code. std::regex re ("(qwe|asd|zxc)+"); std::cout << std::regex_match ("zxcqweasd", re) << std::endl; When I use the cl compiler program prints 1 and 0 if I use the g++ compiler. Which std::regex implementation is wrong? I'm…
Victor
  • 31
  • 3
0
votes
1 answer

Using a 2-D double array with std::cin gives weird SEGFAULT

The question title may seem odd but this seems to be a strange bug in my code that I can't quite figure out. 1 #include "linkern.h" 2 #include "linkern-inl.h" 4 #include 5 #include "tsp.h" //contains macro…
krypto07
  • 280
  • 1
  • 8
0
votes
1 answer

Pointer to member of a typename

Consider this: template < typename VectorType > void ff() { // This passes. typedef typename VectorType::value_type VV; typedef int VV::* MM; // This FAILS!?? typedef int typename VectorType::value_type::* MMM; } Why the second…
Vahagn
  • 4,670
  • 9
  • 43
  • 72
0
votes
0 answers

Class-Wide `using` alias as return type issuing compiler error

In order to keep some code readable and avoid typos, I'm using the following statement in the public section of a class definition in a header file: using Assembly_Tuple = std::tuple , Trigger_Map, Attribute_Map>; I'm…
Thomas Thorogood
  • 2,150
  • 3
  • 24
  • 30
0
votes
1 answer

reimp.exe working with TDM-GCC

I use MinGW version compile by TDM that can be found here Its great but I need reimp.exe to convert MS lib files (mainly MySQL C client library) to GCC .a files. Anyone have got a place I can get a working version of reimp.exe?
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
0
votes
1 answer

error during gcc 4.7.3 compilation

I am trying to compile local version of gcc 4.7.3 on the cluster. For configuration: ./configure --prefix=$HOME/opt/gcc-4.7.3 --with-gmp=$HOME/opt/gmp --with-mpfr=$HOME/opt/mpfr --with-mpc=$HOME/opt/mpc --with-libelf=$HOME/opt/libelf while compiling…
didymos
  • 1,191
  • 3
  • 10
  • 13
0
votes
0 answers

building my own gcc version

My distro (CentOS 6.3) comes with gcc 4.4.6. Since I wanted to try out the Fortran2003 features I decided to compile gcc 4.7. I followed the steps I found online: compiled separately first gmp, mpc, mpfr, ppl and cloog and the compiled gcc. I run…
Alejandro
  • 1,064
  • 1
  • 8
  • 22
0
votes
0 answers

Cannot find make_shared from std::memory or std::tr1 (gcc 4.7)

I don’t understand why I cannot find make_shared from std::memory or std::tr1 include header. I only see 1 version of gcc in my machine ls -lh /usr/bin/g++ lrwxrwxrwx 1 root root 7 Sep 22 2012 /usr/bin/g++ -> g++-4.7 And I am using -std=c++11 tag…
Bryan Fok
  • 3,277
  • 2
  • 31
  • 59
0
votes
0 answers

Compilation error with OpenMP with OpenSUSE 12.2

Using the sample code at http://openmp.org/wp/openmp-compilers/, I tried to run the simple program on my Linux machine (running OpenSUSE 12.2) but failed to get it to compile. Here is the sample code. #include #include int main()…
Giovanni
  • 101
  • 3
  • 13