I have an old executable ELF file. Now, I recompile its source files using the same version of GCC and a similar compilation environment (almost same) ...
I have an old executable ELF file. Now, I recompile its source files using the same version of GCC and a similar compilation environment (almost same) ...
I'm writing a unit test program with Boost.Test and cross-compiling it for several embedded platforms in an OpenWrt environment. The Boost version is ...
Recently, when working with custom allocator code and placement new+delete, I noticed something that surprised me: When a virtual destructor is called ...
I am creating a library component that uses universal forwarding. This works fine in most cases but I have encountered a case where our linux build (s ...
I'm going to ship a to static library to a customer. To maximize the privacy of the library I have restricted symbols for the static library using the ...
During re-factorization of singleton class to be thread safe (fallowing Herb Sutter advice how to write proper double-check locking) I came across pro ...
i am use google test c++ freamwork to test my project but facing some issue for your reference see the compilation errors as follow. src/exclusions/G ...
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 desca ...
I am working on a task to move a big project from old Codewarrior IDE to S32DS from NXP, which use a compiler of GCC 4.9. Unluckily I have big trouble ...
gcc version 4.4.6 compiles code successfully. But gcc version 4.8.1 gives compile error. /*********************************************************** ...
When building on a platform with an older C++ compiler, I noticed unexpected behavior with code that worked fine elsewhere. I'm not sure whether this ...
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 ...
I have a template class Property, that wraps around other types: Visual Studio 15.7.6 and a few other compilers are perfectly happy with However ...
With GCC6 and the code snippet below, this test is false, and this printf is executed and produces this very weird output (GCC6): i > 31 ...
#ifndef _LIST_H #define _LIST_H typedef int element_type; typedef struct node * p_node; typedef p_node list; typedef struct node { ...
I was following the instructions to build my own compile toolchain on my os x,and I do exactly what they suggested.But when I compile the gcc , the co ...
Look at base::m_visible method in tps.hpp (it's «default»): which specialized for inheritor struct in tps_spec.cpp (named «spec»): and further c ...
Preamble: this question is not about Oracle, instead I'd like to understand the fundamental difference between gcc-4 and gcc-6 in the handling of Posi ...
GCC 4.x doesn't accept the --std=c++14 switch for C++14 code - it takes --std=c++1y instead. Later versions take --std=c++1z but (probably) not --std= ...
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 lin ...