Questions tagged [gcc5]

Version 5.x of GCC (GNU Compiler Collection).

76 questions
0
votes
0 answers

CRTP undefined reference with GCC only, -fpermissive

I've had good success using the Curiously Recurring Template Pattern for the Subject Observer pattern in my library. I compile with gcc and Visual Studio 2017. This code has been used for months on both Windows and Linux machines. Recently, I…
Tyson Hilmer
  • 741
  • 7
  • 25
0
votes
1 answer

Error with boost::thread::try_join_for() function

I am trying to use boost::thread::try_join_for() function but I am getting the following compile time error: "'class boost::thread' has no member named 'try_join_for' I am able to use boost::thread::timed_join() function. But I don't want to use…
Arpit
  • 767
  • 7
  • 20
0
votes
1 answer

Assignment of a struct in a for loop error with gcc and not with clang

Hello I got this warning with gcc(version 5.4.0) on a C11 program compiled with the following command: $ gcc -g -Wall -std=c11 main.c -o minishell main.c: In function ‘process_new’: main.c:184:10: error: assignment of read-only variable ‘s’ …
Darnuria
  • 166
  • 1
  • 10
0
votes
1 answer

wxWidgets deprecated constructor

I'm trying to compile following code using wxWidgets 3.0 library: foo.h #ifdef __GNUC__ #include #if wxMAJOR_VERSION >= 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" //< I'm…
0
votes
1 answer

Install GCC5 in Linux Mint LMDE 2

I'm new in Linux and I would like to unistall gcc 4.9 which is installed in my distro Linux Mint LMDE 2 and install gcc 5. I tried to used the following command: sudo apt-get install gcc5 but it didn't worked. Can someone please help me with this?…
JOrG
  • 49
  • 5
0
votes
1 answer

Making GCC 5.1.0 work with CUDA 7.5 as non-root user

I've done the rounds through Google unsuccessfully. My question is a bit unique - I have a big chunk of code that has a lot of C++11 dependencies, which runs just fine when I compile with GCC 5.1.0 but throws a big bunch of errors on GCC 4.8.3, the…
darel
  • 128
  • 1
  • 9
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

Lvalue istringstream Required for istream_iterator?

Given a string foo in Visual Studio I can break the words into a vector by doing: vector fooVec{ istream_iterator(istringstream(foo)), istream_iterator() }; But this won't compile in gcc 5.1. I get the error: invalid initialization…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
0
votes
3 answers

Porting from MSVC2015 Update 2 to GCC 5.3 - SFINAE Errors

I'm currently porting my library, but my dark template magic won't get compiled with GCC 5.3 This fragment works as expected when compiled with MSVC2015 Update 2 template::value, …
user1261537
0
votes
2 answers

libgcc1 depends gcc-5-base but it is not installable

I am trying to install fbi on Debian 7.8 by using apt-get install fbi, but I get an error message containing the following: libgcc1 : Depends: gcc-5-base (= 5.5.1-14) but it is not installable. Actually I get this message whenever I try to do…
Anas
  • 263
  • 3
  • 11
0
votes
1 answer

Cython with g++-5 on OSX

I'm using python 3.4 and I'm going to be wrapping some cpp files that use some of the new c++ language features along with openmp, however, I'm having some trouble getting it to work. I've installed gcc5 using brew and I can compile my cpp files…
uclatommy
  • 305
  • 4
  • 11
0
votes
1 answer

g++ undefined reference to `main'

I have a gcc 5.2.0 configured as follows : Using built-in specs. COLLECT_GCC=gcc-5.2.0 COLLECT_LTO_WRAPPER=/usr/local/lvm/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure…
Olórin
  • 3,367
  • 2
  • 22
  • 42
-1
votes
1 answer

How to prevent GCC from generating x86_64 kmov instructions?

I am using a third party x86_64 assembler that do not recognise kmov instructions (it only supports a subset of the x86_64 instruction set). The assembler is fed assembly files generated by GCC 5.1 (I can't change the version), then it parses and…
Karim Manaouil
  • 1,177
  • 10
  • 24
-1
votes
1 answer

Two equivalent codes giving different run time on GeeksforGeeks platform?

I was solving a question on GeeksforGeeks regarding finding the total number of triangles possible using the three different array elements as sides of the triangle from an unsorted array arr[] of size n. This is the first implementation for the…
Saurav
  • 19
  • 2
-1
votes
1 answer

Compile c++11 in a docker gcc:5 image

My Dockerfile uses FROM gcc:5, runs apt-get update and installs CMake v3.9 via wget. My top-level CMakeLists.txt has set(CMAKE_CXX_STANDARD 11) but that doesn't seem to convince gcc to compile using C++11 as I get the following…
Pejman
  • 1,328
  • 1
  • 18
  • 26