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

cannot run C compiled programs while installing GCC4.7

there is some problem while installing GCC4.7 . Please help me fix this error. http://solarianprogrammer.com/2012/04/13/building-gcc-4-7-on-ubuntu-12-04/ I was trying to install GCC4.7 by following those commands in the above site. …
0
votes
0 answers

distribute gcc 4.7 program with shared libraries on OS X

I've compiled a command-line tool against some C++ dynamic libraries using GCC 4.7 on Mac OS X 10.8. On the development system, the compiler was installed by MacPorts into /opt/local and the libraries reside in /usr/local/lib. The dynamic libraries…
Potatoswatter
  • 134,909
  • 25
  • 265
  • 421
0
votes
1 answer

Function not getting called

I'm implementing a http server in C. I have a custom function for writing headers. When I call it, it doesn't do anything. I have placed an arbitrary printf inside the function, to make sure that it's called, and it doesn't produce output too.…
user1621465
0
votes
1 answer

gcc utf-8 string literal compile error

I'm using g++(GCC) 4.7.2 on Ubuntu. Just trying to figure out how to get the "u8" string literal prefix to compile. I thought it was "built in" with this version of gcc. #include #include int main () { std::string example1 =…
Skippy VonDrake
  • 806
  • 8
  • 21
0
votes
1 answer

ogre build gcc 4.7

I'm trying to build a library named Ogre3d v1.8 using gcc 4.7 on MacOSX 10.6. I have tried to install the gcc version from both MacPorts and from gFortran webpage. Both have the same issue and I can't find much information about this on the…
user1716970
  • 743
  • 1
  • 8
  • 19
0
votes
0 answers

Moved library and compiler - the resulting .a file is 10 x bigger. How to find the root cause?

One of the projects that I work on depends on another, very large in-house library. The CMake file for my project is generated based on the library CMake file - which specifies compiler, compiler switches and so on. The old library had specified…
polomo12
  • 95
  • 1
  • 6
0
votes
2 answers

Conversion error in boost 1.49/1.50/1.51 ASIO with MinGW & GCC 4.7.0

I'm getting some strange error from within boost::asio when simply including the asio.hpp header file, which then includes other headers till win_static_mutex.ippwithin which it generates an conversion error. I use MinGW with GCC 4.7 with the…
Lukas
  • 2,461
  • 2
  • 19
  • 32
0
votes
2 answers

Giving a method as a callback function (gcc 4.7.1)

I'm trying to set a seemingly-simple callback method pointer into a variable and get the following error: CSerialSniffer.cpp|11|error: cannot convert ‘CSerialSniffer::AsyncRecieverReceived’ from type ‘Nexus::TReceiveCallback…
Nitay
  • 4,193
  • 6
  • 33
  • 42
0
votes
2 answers

C++ Compilation error(gcc 4.7)

I'm trying to do 11 exercise at the end of Chapter 5.9 Bjarne Stroustrup The C++ Programming Language. 1 #include 2 #include 3 #include 4 #include 5 6 void…
Logan
  • 7
  • 1
  • 4
0
votes
1 answer

Installation of gcc-4.7 on Fedora 16 still shows gcc-4.6

I built and installed gcc-4.7 on Fedora 16 from source. But when i go to the installation directory (/opt/gcc-4.7.0/bin) and query for the version g++ -v, i get gcc version 4.6.3 .... I did not use any suffix like -4.7 during the configuration, so…
badmaash
  • 4,775
  • 7
  • 46
  • 61
0
votes
1 answer

noexcept specifying conditions under which function does not throw

I am having some trouble wrapping my head around noexcept. template int pop(int idx) noexcept(noexcept(SIZE > 0)) // this is what I dont understand { if (idx <= 0) throw std::out_of_range("My array doesnt go that high"); return…
bryan sammon
  • 7,161
  • 15
  • 38
  • 48
-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…
-3
votes
1 answer

Compiler flag in GCC (C)

I have read the GCC documentation and man. If I compile the code as (1) gcc -o test test.c I get some results when executing it. If I compile it as (2) gcc -O -o test test.c I get different results when I run it. Reading the GCC man, I…
-3
votes
1 answer

How to use GMP library in dev c with gcc4.7.2

I have absolutely no idea about using gmp. Need some functions for a project and need a quick installation guide. I am Absolutely beginner to this field so please help accordingly. I have: Dev C++ 5.4.2 in windows 8.1 configuration with GCC4.7.2…
Paras Rautela
  • 56
  • 1
  • 7
-4
votes
2 answers

gcc 4.7.2 compile error on a lambda capturing this

I have kind of a weird issue and while trying to create a small example to post here on stackoverflow, I failed to reproduce. Hopefully, this will still ring a bell to somebody, or somebody has a good idea to dig further... On my Mac, the below code…
jeebee
  • 63
  • 1
  • 6
1 2 3
9
10