Questions tagged [gcc7]

GCC 7 is a major release of the GNU Compiler collection first released in 2017.

Version 7.1. was released on 2017-05-02. Version 7.5 was released on 2019-11-14.

See also:

74 questions
0
votes
1 answer

Have GCC preprocessor treat angle brackets as quotes

I'm trying to make use of system headers that make use of angle-brackets where quotes should have been used. Specifically I have a system-supplied header file in /usr/include/hdf5/serial/ which contains #include I could of course pass G++…
Isac Casapu
  • 1,163
  • 13
  • 21
0
votes
1 answer

C++ Function error -- could not convert brace-enclosed initializer list to char*

New to C++, more familiar with MATLAB and Arduino. I'm trying to create (read: modify someone else's code) a C++ function to send a character array over serial--it's interacting with a C library (rs232.h). I keep getting this error when initializing…
Monolith
  • 5
  • 3
0
votes
2 answers

Linked list does not remove the second (2) record in list but works fine for all others

I really do not understand what happens with my Program because it seems that it works fine when I try to remove any record found in linked List. The problem comes when I try to remove the record 2 it does not remove it and prints instead 0. Here is…
Michi
  • 5,175
  • 7
  • 33
  • 58
0
votes
1 answer

How to find latest source release of particular minor version of GCC?

I am building GCC from source for particular target. I would like to use latest GCC 7.2 release. When I go to official GCC FTP GCC FTP, I can find only "gcc-7.2.0" release. But, for example, in Arch Linux repository the latest GCC package is "gcc…
cyclone125
  • 336
  • 3
  • 14
0
votes
0 answers

DW_TAG unspecified type on nullptr?

We have an application that is compiled with a recent version of gcc (g++-7.2) Unfortunately, the production server is quite old and has a really old version of gdb (6.5.25-el5rh) It is difficult to debug the software on site, because gdb does not…
phi
  • 71
  • 7
0
votes
2 answers

Why I have different output with valgrind using fork()

I have a issue which I can not explain it. Checking with valgrind for memory leaks I noticed that the order in which the program prints is different from the order which I get if I just run the executable of my program. I reduced my program so that…
Michi
  • 5,175
  • 7
  • 33
  • 58
0
votes
1 answer

Work around cmake error

I am running into this problem more often: [idf@localhost EasyCL]$ mkdir build [idf@localhost EasyCL]$ cd build/ [idf@localhost build]$ cmake .. -- The C compiler identification is unknown -- The CXX compiler identification is GNU 7.2.1 -- Check for…
Ivan
  • 7,448
  • 14
  • 69
  • 134
0
votes
1 answer

Linker error GCC7 with -mavx flag

compiling 256 bit vector datatype (__m256d) from Intel's AVX extension with gcc7 or clang fails. I am able to compile and use 128 bit vectors (without -mavx flag). But as soon as I try the avx vectors either some assembler command definitions are…
0
votes
0 answers

Linking yaml-cpp 0.5.x library with g++ 7.1.0

I'm attempting to compile a relatively simple program using yaml-cpp 0.5.3 with g++ 7.1.0, and am getting a linker error. The minimal program code is: #include int main(int i_iArg_Count, char * i_lpszArg_Values[]) { …
0
votes
0 answers

Non virtual thunk on gcc 7.2 sometimes too big

I try migrate to gcc 7.2 from gcc 4.9 (gcc-arm-none-eabi, -O2). My code builds successfully, but result program is bigger than on gcc 4.9. I make some investigation and realize, that size of "non virtual thunk on xxx" is too big, if overriding…
enji
  • 43
  • 1
  • 6
0
votes
1 answer

Error in building Microsoft's CNTK on Arch Linux: libCntk.Eval-2.0.so complains about undefined reference to TensorView

I am trying to build CNTK from the source on Arch Linux. git commands: git clone https://github.com/Microsoft/CNTK cd CNTK git submodule sync --recursive git submodule update --init --recursive configure and make commands: ./configure…
imriss
  • 1,815
  • 4
  • 31
  • 46
-1
votes
2 answers

Benchmarking GCC 7 vs VS2017 using Nbody test

The code is taken from Computer Benchmarks Game and pasted below. I modified to use SSE2 instead of SSE3 since MSVC does not support beyond SSE2. In particular, I replaced the header file "immintrin.h" to "emmintrin.h" #include #include…
-2
votes
2 answers

How to dereference the pointer returned by a function?

#include int *sum_returning_pointer(int *x, int *y) { // Call be reference int z = (*x) + (*y); return &z; } void main(int *argc, char *argv[]) { int a = 1, b = 2; int *p = sum_returning_pointer(&a, &b); …
Surya Bhusal
  • 520
  • 2
  • 8
  • 28
-2
votes
1 answer

Is this a glitch with online C compiler, gcc-7.2.0?

On an online C compiler called jdoodle, I tried this simple snippet below: #include #include int main(void) { double f = 1.2; //printf("%f\n", ceil(f)); printf("%f\n", ceil(1.2)); return 0; } It…
WedaPashi
  • 3,561
  • 26
  • 42
1 2 3 4
5