Gang Of Coders
Home
About Us
Contact Us
All Gcc Solutions on Gang of Coders
Total of 443 Gcc Solutions
Removing trailing newline character from fgets() input
C
String
Gcc
Newline
Fgets
Why is the maximum size of an array "too large"?
C
Gcc
Mingw
Size T
Stdint
GCC's assembly output of an empty program on x86, win32
C
Gcc
X86
Gnu Assembler
Tdm Mingw
What is the best way to suppress A "Unused variable x" warning?
C
Gcc
gcc -g :what will happen
C++
C
Gcc
Gdb
A simple explanation of what is MinGW
C
Windows
Gcc
Cygwin
Mingw
Check glibc version for a particular gcc compiler
C
Gcc
Glibc
Error installing python-snappy: snappy-c.h: No such file or directory
Python
Gcc
gcc: undefined reference to
C++
C
Gcc
Linker
Undefined Reference
Why does GCC call libc's sqrt() without using its result?
C++
Gcc
Assembly
X86 64
Use both static and dynamically linked libraries in gcc
Gcc
Linker
Comparison operation on unsigned and signed integers
C
Gcc
Unsigned
Signed
C++ syntax for explicit specialization of a template function in a template class?
C++
Templates
Gcc
Can I mix static and shared-object libraries when linking?
C
Gcc
Static
Linker
Does standard c library provides linked list etc. data structures?
C
Gcc
Data Structures
Glibc
What is the difference between MinGW, MinGW-w64 and MinGW-builds?
C++
Eclipse
Gcc
C++11
Mingw
What does __asm__ __volatile__ do in C?
C
Gcc
Inline Assembly
Using C++11 futures: Nested calls of std::async crash: Compiler/Standard library bug?
C++
C++11
Gcc
Future
Mingw W64
GCC can't find stdio.h in Alpine Linux
Gcc
Alpine
CreateProcess: No such file or directory
C
Gcc
Mingw
Anonymous functions using GCC statement expressions
C
Gcc
Lambda
Anonymous Function
How does malloc work in a multithreaded environment?
C
Linux
Gcc
Malloc
X86 64
How clear gdb command screen?
C++
C
Gcc
Gdb
Binutils
How to repair warning: missing braces around initializer?
Gcc
Vala
how to find gcc version on mac
C
Macos
Gcc
version `CXXABI_1.3.8' not found (required by ...)
C++
Linux
Gcc
Boost
gcc4.9
Undefined Symbol ___gxx_personality_v0 on link
C++
C
Gcc
G++
Line number of segmentation fault
Debugging
Gcc
Gdb
Segmentation Fault
Handling stdafx.h in cross-platform code
C++
Visual Studio
Gcc
Cross Platform
stdafx.h
likely/unlikely equivalent for MSVC
Visual Studio
Gcc
Optimization
Compiler Construction
Likely Unlikely
How to apply -fvisibility option to symbols in static libraries?
Gcc
Visibility
Static Libraries
Embedding binary blobs using gcc mingw
C
Gcc
Binary
Mingw
Why does typeid.name() return weird characters using GCC and how to make it print unmangled names?
C++
Gcc
G++
Rtti
File not recognized: File truncated GCC error
C++
Eclipse
Gcc
Is RVO (Return Value Optimization) applicable for all objects?
C++
Optimization
Gcc
Undefined reference to `omp_get_max_threads_'
Gcc
Openmp
Gfortran
How to use GCC with Microsoft Visual Studio?
Windows
Visual Studio
Gcc
Cygwin
g++ ld: symbol(s) not found for architecture x86_64
C++
Opencv
Gcc
CMake: The C Compiler is not able to compile a simple test program
Gcc
Cmake
Mips
Cross Compiling
Linker error: "linker input file unused because linking not done", undefined reference to a function in that file
C++
C
Gcc
Makefile
Linker Errors
Anonymous union within struct not in c99?
C
Gcc
Struct
C99
Unions
Producing optimised NDK code for multiple architectures?
Android
C
Gcc
Java Native-Interface
Android Ndk
What is the first (int (*)(...))0 vtable entry in the output of g++ -fdump-class-hierarchy?
C++
Gcc
Virtual Functions
Vtable
Is there a preprocessor directive for detecting C++11x support?
C++
Gcc
C Preprocessor
Preprocessor Directive
How do I print uint32_t and uint16_t variables' value?
C
Gcc
Implementation C++14 make_integer_sequence
C++
Gcc
C++11
C++14
How to use/install gcc on Mac OS X 10.8 / Xcode 4.4
Xcode
Macos
Gcc
Using GCC to produce readable assembly?
C
Gcc
Assembly
How do I best silence a warning about unused variables?
C++
Gcc
Warnings
Gcc Warning
error: anachronistic old-style base class initializer
C++
C++11
Gcc
C++14
C++03
C vs C++ compilation incompatibility - does not name a type
C++
C
Gcc
G++
Does the restrict keyword provide significant benefits in gcc/g++?
C++
C
Gcc
G++
Restrict Qualifier
assert() with message
C
Gcc
Compiler Warnings
Assert
Where can I find an official reference listing the operation of SSE intrinsic functions?
C++
C
Gcc
Sse
Simd
Does gcc define anything when -g is specified?
C
Debugging
Gcc
C Preprocessor
What is the difference between str==NULL and str[0]=='\0' in C?
C
Pointers
Gcc
Cstring
I don't understand -Wl,-rpath -Wl,
Gcc
Ld
Rpath
Ubuntu - Linking boost.python - Fatal error: pyconfig cannot be found
C++
Ubuntu
Gcc
Boost
Boost Python
Is it possible to debug a gcc-compiled program using lldb, or debug a clang-compiled program using gdb?
Gcc
Gdb
Clang
Llvm
Lldb
macOS Clang C++17 filesystem header not found
C++
Macos
Gcc
Clang
C++17
Why is gcc allowed to speculatively load from a struct?
C
Gcc
Assembly
X86
Compiler Optimization
Stack allocation, padding, and alignment
C
Gcc
Assembly
X86
Stack
How to check the version of OpenMP on Linux
Linux
Gcc
Version
Openmp
Hierarchical ldd(1)
Linux
Gcc
Linker
Gentoo
Ldd
Why is scanf() causing infinite loop in this code?
C
Gcc
Scanf
GCC style weak linking in Visual Studio?
C++
C
Visual Studio
Gcc
Weak Linking
Symbol hiding in static libraries built with Xcode
Xcode
Gcc
Obfuscation
Symbols
C++ template compilation error: expected primary-expression before ‘>’ token
C++
Visual C++
Gcc
Boost
Compiler Errors
Checking the gcc version in a Makefile?
Gcc
Makefile
Version
Portability
Compiler Warnings
Why is the linker terminating on me? when i build CLang
Gcc
Linker
Cross-compilation for Raspberry Pi in GCC. Where to start?
C++
Gcc
Arm
Cross Compiling
Raspberry Pi
What is -ffreestanding option in gcc?
C
Gcc
Compilation
Freestanding
Is bool a native C type?
C
Gcc
Linux Kernel
Boolean
What do you need to install to use Clang on windows to build c++14 for 64 bit?
Windows
C++11
Gcc
Clang++
Llvm Clang
Best practices for debugging linking errors
C++
Visual Studio
Gcc
Linker
Compilation
Why doesn't GCC optimize structs?
C
Optimization
Gcc
Struct
How to link using GCC without -l nor hardcoding path for a library that does not follow the libNAME.so naming convention?
C++
C
Gcc
Linker
Shared Libraries
Inheriting constructors
C++
Inheritance
Gcc
Constructor
GCC dump preprocessor defines
Gcc
G++
C Preprocessor
Getting started with Intel x86 SSE SIMD instructions
C
Gcc
X86
Sse
Simd
How to improve Visual C++ compilation times?
C++
Visual C++
Gcc
Comparison
Compilation Time
How to determine maximum stack usage in embedded system with gcc?
Gcc
Embedded
Static Analysis
Code Analysis
Yagarto
Clang vs GCC - which produces faster binaries?
Optimization
Gcc
Compiler Construction
Clang
Benchmarking
GCC 4.8 on Mac OS X v10.8 throws "Undefined symbols for architecture x86_64"
Gcc
difference between <stdlib.h> and <malloc.h>
C
Gcc
Malloc
What is "!!" in C?
C
Gcc
Boolean
Boolean Expression
What is "..." in switch-case in C code
C
Gcc
Gcc Extensions
Error "undefined reference to 'std::cout'"
C++
C++11
Gcc
Cout
Constructor initialization-list evaluation order
C++
Gcc
C++ Faq
What does a && operator do when there is no left side in C?
C
Gcc
Goto
Language Extension
What causes a char to be signed or unsigned when using gcc?
C
Gcc
Is the "this" pointer just a compile time thing?
C++
Gcc
This
This Pointer
How to disable GCC warnings for a few lines of code
C
Gcc
Compiler Warnings
Pragma
What is makeinfo, and how do I get it?
Ubuntu
Gcc
Makefile
Grep
Can't install Ruby under Lion with RVM – GCC issues
Ruby
Gcc
Rvm
Osx Lion
xcode4.2
Modulo operation with negative numbers
C
Gcc
Modulo
Negative Number
Why does the C preprocessor interpret the word "linux" as the constant "1"?
C
Linux
Gcc
C Preprocessor
What is the difference between g++ and gcc?
C++
Gcc
G++
Why does GCC use multiplication by a strange number in implementing integer division?
C
Gcc
Assembly
X86 64
Integer Division
How can I suppress "unused parameter" warnings in C?
C
Gcc
Gcc Warning
libpthread.so.0: error adding symbols: DSO missing from command line
Gcc
Compiler Errors
Linker
Undefined Reference
typedef fixed length array
C
Arrays
Gcc
Typedef
std::vector performance regression when enabling C++11
C++
Performance
Gcc
C++11
Vector
Objective-C for Windows
Objective C
Windows
Winapi
Gcc
Cygwin
How to turn on (literally) ALL of GCC's warnings?
C++
Gcc
Warnings
Compiler Warnings
Gcc Warning
How do I install imagemagick with homebrew?
Git
Gcc
Homebrew
Osx Lion
Gcc4
Disable all gcc warnings
Gcc
G++
Warnings
Realistic usage of the C99 'restrict' keyword?
C
Gcc
C99
Restrict Qualifier
Multiple glibc libraries on a single host
Linux
Gcc
Glibc
Is errno thread-safe?
C
Linux
Multithreading
Gcc
Where does gcc look for C and C++ header files?
C
Gcc
Header
Build .so file from .c file using gcc command line
C
Linux
Gcc
Shared Libraries
How to generate gcc debug symbol outside the build target?
Gcc
Debugging
Pdb Files
"/usr/bin/ld: cannot find -lz"
Linux
Gcc
Linker
Make install, but not to default directories?
Linux
Gcc
Makefile
Autotools
How to see which flags -march=native will activate?
Gcc
G++
Compiler Optimization
Compiler Flags
What does gcc's ffast-math actually do?
Performance
Math
Gcc
Floating Point
Fast Math
LD_LIBRARY_PATH vs LIBRARY_PATH
Gcc
G++
Ld
Why does GCC generate such radically different assembly for nearly the same C code?
C
Gcc
Assembly
X86
Compiler Optimization
Can't compile C program on a Mac after upgrade to Mojave
C
Macos
Gcc
Terminal
Is gcc's __attribute__((packed)) / #pragma pack unsafe?
C
Gcc
Pragma Pack
How to print the ld(linker) search path
Linux
Gcc
Linker
Ld
Clang vs GCC for my Linux Development project
C++
C
Linux
Gcc
Clang
Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code
Ubuntu
Gcc
Mips
Cross Compiling
Nachos
Warning/error "function declaration isn't a prototype"
C
Gcc
Why does flowing off the end of a non-void function without returning a value not produce a compiler error?
C++
C
Gcc
G++
ld cannot find an existing library
Linux
Gcc
Linker
Shared Libraries
Shared Objects
Why is my program slow when looping over exactly 8192 elements?
C++
Performance
Memory Management
Gcc
Telling gcc directly to link a library statically
Gcc
Linker
Static Libraries
Dynamic Linking
What is the advantage of GCC's __builtin_expect in if else statements?
C
Linux
Gcc
Built In
Likely Unlikely
An expensive jump with GCC 5.4.0
C++
Gcc
X86
Conditional Statements
Branch Prediction
warning: incompatible implicit declaration of built-in function ‘xyz’
C
Gcc
Gcc Warning
What are the useful GCC flags for C?
C
Gcc
Compiler Flags
What are the GCC default include directories?
C++
C
Linux
Gcc
Include Path
How do you use gcc to generate assembly code in Intel syntax?
Assembly
Gcc
X86
Intel Syntax
mingw-w64 threads: posix vs win32
Windows
Gcc
Pthreads
Mingw
How to compile a static library in Linux?
C
Gcc
Static Libraries
Why does this loop produce "warning: iteration 3u invokes undefined behavior" and output more than 4 lines?
C++
Gcc
Undefined Behavior
brew install gcc too time consuming
Gcc
Homebrew
What is the purpose of using -pedantic in the GCC/G++ compiler?
C++
C
Gcc
G++
How can I link to a specific glibc version?
Linux
Gcc
Linker
Glibc
Libc
error: use of deleted function
C++
Gcc
G++
C++11
Deleted Functions
What is the meaning of "__attribute__((packed, aligned(4))) "
C
Gcc
What are the differences between -std=c++11 and -std=gnu++11?
C++
Gcc
C++11
Clang
How to specify new GCC path for CMake
Gcc
Cmake
Compiling problems: cannot find crt1.o
Gcc
Clang
Ld
How to compile for Windows on Linux with gcc/g++?
C++
Opengl
Gcc
Glut
Freeglut
How does #include <bits/stdc++.h> work in C++?
C++
Gcc
C++11
G++
Static link of shared library function in gcc
Linux
Gcc
How to suppress GCC warnings from library headers?
Gcc
Warnings
Suppress Warnings
Gcc Warning
What is the difference between C, C99, ANSI C and GNU C?
C
Gcc
C99
C89
Ansi C
How can I tell gcc not to inline a function?
C
Gcc
Inline
What is the use of _start() in C?
C
Gcc
Startup
Why does the enhanced GCC 6 optimizer break practical C++ code?
C++
Gcc
Compiler Optimization
Undefined Behavior
Gcc error: gcc: error trying to exec 'cc1': execvp: No such file or directory
Gcc
How to automatically generate a stacktrace when my program crashes
C++
Gcc
Crash
Stack Trace
Assert
LLVM vs clang on OS X
C++
C
Gcc
Llvm
Clang
Differences between arm64 and aarch64
Android
Ios
Gcc
Arm
Arm64
Bubble sort slower with -O3 than -O2 with GCC
C
Gcc
X86 64
Cpu Architecture
Compiler Optimization
CMake error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found
C++
Visual Studio
Gcc
Cmake
Visual Studio-2015
Is using an outdated C compiler a security risk?
C
Security
Gcc
Explicit specialization in non-namespace scope
C++
Templates
Gcc
What does the fpermissive flag do?
C++
Gcc
Compiler Options
How do I make a simple makefile for gcc on Linux?
C
Gcc
Makefile
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
C++
Gcc
Libstdc++
How to remove unused C/C++ symbols with GCC and ld?
C++
C
Gcc
Ld
Strip
Difference between -pthread and -lpthread while compiling
Multithreading
Gcc
Thread Safety
Pthreads
Compiler Flags
Difference between CC, gcc and g++?
C++
C
Gcc
Compilation
GCC -g vs -g3 GDB Flag: What is the Difference?
C
Debugging
Gcc
Gdb
Clang
Why does integer overflow on x86 with GCC cause an infinite loop?
C++
C
Gcc
X86
Undefined Behavior
Undefined reference to `pow' and `floor'
C
Gcc
Undefined Reference
How to compile a 32-bit binary on a 64-bit linux machine with gcc/cmake
Linux
Gcc
64 Bit
Cmake
32 Bit
How to prevent gcc optimizing some statements in C?
C
Gcc
Where is PATH_MAX defined in Linux?
C
Linux
Gcc
Include
Clang
Why is a simple loop optimized when the limit is 959 but not 960?
C
Gcc
Optimization
Clang
Possible GCC bug when returning struct from a function
C
Gcc
Assembly
X86 64
Compiler Bug
error: ‘NULL’ was not declared in this scope
C++
Gcc
Pointers
Null
What does the -all_load linker flag do?
Iphone
Objective C
Gcc
Linker
CUDA incompatible with my gcc version
Gcc
Cuda
Debian
How do I fix "for loop initial declaration used outside C99 mode" GCC error?
C
Gcc
For Loop
Compile error: "g++: error trying to exec 'cc1plus': execvp: No such file or directory"
Php
C++
C
Linux
Gcc
How to tell where a header file is included from?
C++
C
Gcc
Include
G++
What does -fPIC mean when building a shared library?
C++
C
Gcc
Fpic
What is the -fPIE option for position-independent executables in gcc and ld?
Gcc
Linker
Aslr
Position Independent-Code
How to install GCC piece by piece with GMP, MPFR, MPC, ELF, without shared libraries?
Gcc
Elf
Gmp
Mpfr
Mpc
How many GCC optimization levels are there?
C
Optimization
Gcc
Compiler Construction
static linking only some libraries
Gcc
Linker
Static Libraries
how to install gcc on windows 7 machine?
Gcc
Windows 7
Installation
Why do I get "a label can only be part of a statement and a declaration is not a statement" if I have a variable that is initialized after a label?
C
Gcc
Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)?
Gcc
Assembly
Floating Point
Compiler Optimization
Fast Math
Is cout synchronized/thread-safe?
C++
Gcc
C++11
Is there a compiler hint for GCC to force branch prediction to always go a certain way?
C++
Gcc
Intel
Pragma
Branch Prediction
How do you disable the unused variable warnings coming out of gcc in 3rd party code I do not wish to edit?
C++
Gcc
Compiler Warnings
Compiler Flags
How did I get a value larger than 8 bits in size from an 8-bit integer?
C++
Gcc
Undefined Behavior
How do I list the symbols in a .so file
C++
C
Gcc
Symbols
Name Mangling
gdb: how to print the current line or find the current line number?
Debugging
Gcc
Gdb
Unmangling the result of std::type_info::name
C++
Gcc
Name Mangling
How to create a static library with g++?
C++
Gcc
Compiler Construction
G++
experimental::filesystem linker error
C++
Gcc
C++17
Downcasting shared_ptr<Base> to shared_ptr<Derived>?
C++
Gcc
Boost
How to compile without warnings being treated as errors?
C
Gcc
Compiler Warnings
Is it intended by the C++ standards committee that in C++11 unordered_map destroys what it inserts?
C++
Gcc
C++11
Clang
Standards
Using C++ library in C code
C++
C
Gcc
Glibc
Why do I get a warning every time I use malloc?
C
Gcc
Malloc
Warnings
Sizeof
Convert char to int in C and C++
C++
C
Gcc
Using pre-compiled headers with CMake
C++
Visual Studio
Gcc
Cmake
Precompiled Headers
What does -D_XOPEN_SOURCE do/mean?
C
Gcc
Will strlen be calculated multiple times if used in a loop condition?
C++
C
Gcc
Optimization
Strlen
What is the difference between gcc -ggdb and gcc -g
Gcc
Gdb
Dual emission of constructor symbols
C++
Gcc
Constructor
error: unknown type name ‘bool’
C
Gcc
Lex
Debug vs Release in CMake
C++
C
Gcc
Cmake
Why does the order in which libraries are linked sometimes cause errors in GCC?
Gcc
Linker
Why don't two binaries of programs with only comments changed exactly match in gcc?
C
Gcc
Optimization
Binary Reproducibility
What is __gxx_personality_v0 for?
C++
Gcc
Linker
Kernel
Static assert in C
C
Gcc
Assert
Compile Time
Static Assert
What is the difference between `-fpic` and `-fPIC` gcc parameters?
Gcc
Fpic
Member initialization while using delegated constructor
C++
Gcc
C++11
Ctor Initializer
How to fix GCC compilation error when compiling >2 GB of code?
C++
Math
Gcc
Compiler Errors
Code Size
GCC -fPIC option
C++
Gcc
Options
Fpic
What exactly is LLVM?
Gcc
Llvm
How can I use "sizeof" in a preprocessor macro?
C
Gcc
How to change the default GCC compiler in Ubuntu?
Linux
Ubuntu
Gcc
How to Install gcc 5.3 with yum on CentOS 7.2?
Gcc
Installation
Centos7
Yum
Gcc5
Compiler error: memset was not declared in this scope
C++
Gcc
GCC fatal error: stdio.h: No such file or directory
C
Gcc
Stdio
Ask GDB to list all functions in a program
C
Linux
Gcc
Gdb
X86 64
gcc/g++: "No such file or directory"
C++
C
Gcc
G++
C++ Faq
Is gcc 4.8 or earlier buggy about regular expressions?
C++
Regex
Gcc
C++11
Libstdc++
Linking libstdc++ statically: any gotchas?
C++
Linux
Gcc
Static Libraries
Libstdc++
C++ #include and #import difference
C++
Visual C++
Gcc
Import
Include
How to set up a cron job to run an executable every hour?
C
Linux
Gcc
Cron
Crontab
Compiling a C++ program with GCC
C++
Gcc
G++
Gnu
What does && mean in void *p = &&abc;
C++
C
Gcc
Operators
Why do I get a C malloc assertion failure?
C
Gcc
Malloc
Assertion
C/C++ with GCC: Statically add resource files to executable/library
C++
Linux
Gcc
Shared Libraries
Elf
What's the difference between -rpath and -L?
Gcc
Linker
Shared Libraries
Ld
Converting a pointer into an integer
C++
Gcc
Casting
64 Bit
32 Bit
long long int vs. long int vs. int64_t in C++
C++
Gcc
Cstdint
C++ warning: division of double by zero
C++
Gcc
Floating Point
Divide by-Zero
Can't compile a C program on a Mac after upgrading to Catalina 10.15
C
Xcode
Macos
Gcc
Macos Catalina
Why does GCC generate 15-20% faster code if I optimize for size instead of speed?
C++
Performance
Gcc
X86 64
Compiler Optimization
"Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." when using GCC
Ios
Xcode
Gcc
Building OSX App Bundle
Macos
Gcc
Otool
Precompiled headers with GCC
C++
Gcc
Precompiled Headers
How can I have a Makefile automatically rebuild source files that include a modified header file? (In C/C++)
Gcc
Makefile
Dependencies
Header
CFLAGS, CCFLAGS, CXXFLAGS - what exactly do these variables control?
Gcc
Naming Conventions
Makefile
What is the difference between gcc/g++ and cc1/cc1plus?
Gcc
G++
How do I add an icon to a mingw-gcc compiled executable?
Windows
Gcc
Icons
Mingw
How do you get assembler output from C/C++ source in gcc?
C++
C
Assembly
Gcc
Disassembly
explicit specialization of template class member function
C++
Templates
Gcc
Specialization
Is gcc C compiler written in C itself?
C
Gcc
Compiler Construction
Undefined reference to vtable
C++
Gcc
G++
Trying to understand gcc option -fomit-frame-pointer
C
Performance
Gcc
Cpu Registers
Stack Frame
Compilation fails with "relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object"
C++
Linux
Gcc
Linker
Shared Libraries
Compiling multithread code with g++
C++
Linux
Ubuntu
Gcc
G++
GCC: how is march different from mtune?
Optimization
Gcc
Compiler Construction
Options
Flags
Finding out what the GCC include path is
C
Linux
Gcc
C Preprocessor
combine two GCC compiled .o object files into a third .o file
Gcc
Compiler Construction
Linker
Ld
Object Files
Debugging the error "gcc: error: x86_64-linux-gnu-gcc: No such file or directory"
Python
Gcc
Makefile
Autotools
How to remove "noise" from GCC/clang assembly output?
C++
Assembly
Gcc
Clang
Compiler Optimization
What is the difference between "gcc -s" and a "strip" command?
Gcc
Strip
Symbols
How to disable compiler optimizations in gcc?
C
Gcc
Compiler Optimization
Compiler Options
<random> generates same number in Linux, but not in Windows
C++
Linux
Windows
Gcc
Visual Studio-2013
How to define a string literal in gcc command line?
C++
C
Gcc
Command Line
Macros
What are the --start-group and --end-group command line options?
Gcc
Linker
Ld
Proper way to create unique_ptr that holds an allocated array
C++
Linux
Gcc
C++11
Unique Ptr
Is the definition of "volatile" this volatile, or is GCC having some standard compliancy problems?
C++
C
Gcc
Standards
trap representation
C++
C
Visual Studio-2010
Gcc
Language Lawyer
How to stop MinGW and MSYS from mangling path names given at the command line
Gcc
Mingw
Cross Compiling
Rpath
Codesourcery
Where is the <conio.h> header file on Linux? Why can't I find <conio.h>?
C
Linux
Gcc
Header Files
setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Python
Gcc
Pip
Odoo
What exactly does GCC's -Wpsabi option do? What are the implications of supressing it?
C++
Linux
Gcc
Gcc Warning
Abi
Are stack variables aligned by the GCC __attribute__((aligned(x)))?
C
Gcc
Memory Alignment
Callstack
Selectively disable GCC warnings for only part of a translation unit
C++
C
Gcc
Compiler Warnings
Pragma
The difference between asm, asm volatile and clobbering memory
C
Gcc
Inline Assembly
How to instruct GCC to stop after 5 errors?
C++
Gcc
G++
Include header files using command line option?
C++
Gcc
Include
Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
Gcc
Gmp
Mpfr
Mpc
gcc makefile error: "No rule to make target ..."
Gcc
Makefile
Can I use C++11 with Xcode?
C++
Xcode
Gcc
C++11
Clang
Why can't GCC generate an optimal operator== for a struct of two int32s?
C++
Gcc
X86 64
Compiler Optimization
Micro Optimization
Recommended gcc warning options for C
C
Gcc
Compiler Errors
Where are include files stored - Ubuntu Linux, GCC
Linux
Gcc
Location
Include
Why does GCC pad functions with NOPs?
C
Assembly
Gcc
Memory Alignment
Big difference (x9) in the execution time between almost identical code in C and C++
C++
C
Performance
Gcc
Iostream
What is a file with extension .a?
C
Gcc
Shared Libraries
Why does malloc initialize the values to 0 in gcc?
C
Linux
Gcc
Malloc
Linking with dynamic library with dependencies
Gcc
Dll
Dependencies
G++
What is the "Illegal Instruction: 4" error and why does "-mmacosx-version-min=10.x" fix it?
Macos
Gcc
Osx Lion
Osx Mountain-Lion
Osx Leopard
therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension
Ruby
Gcc
Osx Mavericks
Therubyracer
Libv8
Undefined reference to static const int
C++
Gcc
How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
C++
String
Gcc
Why is the compiler throwing this warning: "missing initializer"? Isn't the structure initialized?
C
Winapi
Gcc
Why does adding inline assembly comments cause such radical change in GCC's generated code?
C++
Gcc
Assembly
Optimization
Inline Assembly
Conflict between a Stanford tutorial and GCC
C
Gcc
Memory Management
How Does The Debugging Option -g Change the Binary Executable?
Gcc
Gdb
Debugging
How to turn off gcc compiler optimization to enable buffer overflow
C
Gcc
Buffer Overflow
Compiler Optimization
How do the likely/unlikely macros in the Linux kernel work and what is their benefit?
Linux
Gcc
Linux Kernel
Likely Unlikely
How do I compile the asm generated by GCC?
C
Gcc
Compiler Construction
Assembly
exit.c:(.text+0x18): undefined reference to `_exit' when using arm-none-eabi-gcc
Gcc
Arm
Make C floating point literals float (rather than double)
C
Gcc
Floating Point
Literals
__attribute__ in GNU C
Function
Gcc
Declaration
How exactly does __attribute__((constructor)) work?
C++
Objective C
C
Gcc
C++11: How to alias a function?
C++
Linux
Gcc
C++11
Compile and run program without main() in C
C
Gcc
Segmentation Fault
Main
Gcc Warning
Selectively remove a warning message using GCC
Gcc
Warnings
How to add multiple header include and library directories to the search path in a single gcc command?
C
Gcc
Why does the order of '-l' option in gcc matter?
C
Gcc
Linker
Ld
difference between gcc -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2
Security
Gcc
Glibc
Detect gcc as opposed to msvc / clang with macro
C++
Gcc
Why does my Intel Skylake / Kaby Lake CPU incur a mysterious factor 3 slowdown in a simple hash table implementation?
C++
Performance
Gcc
X86 64
Hashtable
Is it possible to tell the branch predictor how likely it is to follow the branch?
C
Gcc
X86
Compiler Optimization
Micro Optimization
How to retrieve the GCC version used to compile a given ELF executable?
Gcc
Elf
Preprocessor output
Gcc
Macros
C Preprocessor
How to prevent GCC from optimizing out a busy wait loop?
C
Optimization
Gcc
Avr Gcc
How bad is "if (!this)" in a C++ member function?
C++
Visual C++
Gcc
How to detect SSE/SSE2/AVX/AVX2/AVX-512/AVX-128-FMA/KCVI availability at compile-time?
Gcc
Clang
Sse
Avx
Avx512
make -j 8 g++: internal compiler error: Killed (program cc1plus)
Linux
Ubuntu
Gcc
G++
Mesos
What is C17 and what changes have been made to the language?
C
Gcc
Iso
C11
C17
Linux static linking is dead?
Linux
Gcc
Glibc
Static Linking
ld: library not found for -lcrt0.o on OSX 10.6 with gcc/clang -static flag
Macos
Gcc
Ld
Why does gcc allow arguments to be passed to a function defined to be with no arguments?
C
Gcc
Compiler Errors
Embedding resources in executable using GCC
C++
C
Gcc
Resources
Embedded Resource
ARM compilation error, VFP registers used by executable, not object file
Gcc
Compilation
Arm
C++ compilation bug?
C++
Gcc
Undefined Behavior
What exactly does `-rdynamic` do and when exactly is it needed?
C
Gcc
Shared Libraries
Elf
Dynamic Loading
Compiler stops optimizing unused string away when adding characters
C++
Gcc
Compilation
Clang
Compiler Optimization
gcc/g++ option to place all object files into separate directory
Gcc
G++
Compiling without libc
C
Gcc
Glibc
Demo
Libc
How to set the LDFLAGS in CMakeLists.txt?
Gcc
Makefile
Cmake
Ld
Ldflags
When is it necessary to use the flag -stdlib=libstdc++?
C++
Gcc
C++11
Std
Libstdc++
Is the compiler allowed to optimize out heap memory allocations?
C++
Gcc
Optimization
Clang
Language Lawyer
How can I hide "defined but not used" warnings in GCC?
Gcc
Warnings
Compiler Warnings
How to include header files in GCC search path?
C++
Gcc
Header
Force gcc to compile 32 bit programs on 64 bit platform
Linux
Gcc
32 Bit
X86 64
How do I force gcc to inline a function?
Gcc
Inline
Compiler Flags
How to specify non-default shared-library path in GCC Linux? Getting "error while loading shared libraries" when running
Gcc
Linker
Shared Libraries
Can I use Intel syntax of x86 assembly with GCC?
C
Gcc
Assembly
X86
Inline Assembly
Floating point exception ( SIGFPE ) on 'int main(){ return(0); }'
C
Linux
Gcc
Elf
Sigfpe
What is the performance penalty of C++11 thread_local variables in GCC 4.8?
C++
Linux
Multithreading
Gcc
C++11
How to use AddressSanitizer with GCC?
Gcc
Address Sanitizer
How to update GCC in MinGW on Windows?
C++
Gcc
C++11
Mingw
How can I find the header files of the C programming language in Linux?
C
Linux
Gcc
Header Files
What is the difference between arm-linux-gcc and arm-none-linux-gnueabi
Gcc
Arm
Strange code that compiles with g++
C++
Gcc
C++11
G++
Invoking GCC as "cc" versus "gcc"
C
Linux
Gcc
Compiler Construction
Gnu
GCC worth using on Windows to replace MSVC?
C++
Windows
Visual C++
Gcc
C++11
Is it possible to use GPU acceleration on compiling multiple programs on a gcc compiler?
Gcc
Compiler Construction
Gpu
Hardware Acceleration
How can I get what my main function has returned?
C
Linux
Gcc
How to recompile with -fPIC
C++
Gcc
Compilation
Ffmpeg
Fpic
Return void type in C and C++
C++
C
Gcc
Clang
Language Lawyer
Why is this code using strlen heavily 6.5x slower with GCC optimizations enabled?
C
Performance
Gcc
Glibc
.o files vs .a files
C++
C
Linux
Gcc
Build Process
fatal error: Python.h: No such file or directory
Python
Gcc
Python C-Api
Compiling an application for use in highly radioactive environments
C++
C
Gcc
Embedded
Fault Tolerance
When should I use GCC's -pipe option?
Gcc
Pipe
Compiler Options
How to get a stack trace for C++ using gcc with line number information?
C++
Linux
Gcc
Stack Trace
Why would one use #include_next in a project?
Gcc
Include
C Preprocessor
gcc cannot find bits/predefs.h on i686
Gcc
Ubuntu 12.04
How to compile executable for Windows with GCC with Linux Subsystem?
C
Bash
Gcc
Why is memcmp(a, b, 4) only sometimes optimized to a uint32 comparison?
C
Gcc
Clang
X86 64
Compiler Optimization
Static variables initialisation order
C++
Visual Studio
Gcc
Static
Linker
How do I check if gcc is performing tail-recursion optimization?
Gcc
G++
Tail Recursion
Is it possible to get GCC to read from a pipe?
Gcc
Command Line
Pipe
Flex Lexer
How can I tell, with something like objdump, if an object file has been built with -fPIC?
Gcc
Shared Libraries
Objdump
Fpic
What is the meaning of lines starting with a hash sign and number like '# 1 "a.c"' in the gcc preprocessor output?
C
Gcc
C Preprocessor
Prefetching Examples?
Gcc
Optimization
Assembly
Prefetch
How to use gdb with LD_PRELOAD
C
Linux
Gcc
Gdb
X86 64
😃 (and other Unicode characters) in identifiers not allowed by g++
C++
Gcc
Unicode
C++11
G++
Printf long long int in C with GCC?
C
Gcc
Printf
C99
std::put_time implementation status in GCC?
C++
Gcc
C++11
Std
Chrono
Is there a 128 bit integer in gcc?
C
Gcc
X86 64
Bigint
128 Bit
Why can't GCC optimize the logical / bitwise AND pair in "x && (x & 4242)" to "x & 4242"?
C++
Gcc
Optimization
Compiler Optimization
When and how to use GCC's stack protection feature?
C++
Gcc
Stack
Protection
printf and long double
C
Gcc
Printf
Long Double
typeof operator in C
C
Gcc
Typeof
What is the default C -std standard version for the current GCC (especially on Ubuntu)?
C
Ubuntu
Gcc
C99
C11
How do I set up CLion to compile and run?
Gcc
G++
Clion
Jetbrains Ide
Why does gcc not implicitly supply the -fPIC flag when compiling static libraries on x86_64
Gcc
Compilation
Dynamic Linking
Static Linking
Gnu Toolchain
Hide password input on terminal
C
Linux
Gcc
Terminal
Masking
How may I override the compiler (GCC) flags that setup.py uses by default?
Python
Gcc
Setuptools
setup.py
Distutils
How do I force make/GCC to show me the commands?
Gcc
Makefile
Verbosity
What is the 'soname' option for building shared libraries for?
Linux
Gcc
Shared Libraries
Where are the gcov symbols?
Gcc
Profile
Gcov
Update GCC on OSX
C++
Macos
Gcc
Compiler Construction
G++
Compile a DLL in C/C++, then call it from another program
C++
C
Gcc
Vb6
Mingw
Why does the = operator work on structs without having been defined?
C++
Gcc
Operators
Contents of a static library
C++
C
Gcc
Static Libraries
Object Files
How does the C preprocessor handle circular dependencies?
C
Linux
Gcc
C Preprocessor
How does this C program compile and run with two main functions?
C
Gcc
Main
How to add a builtin function in a GCC plugin?
C
Gcc
Built In
Gcc Plugins
In a GNU C macro envSet(name), what does (void) "" name mean?
C
Gcc
Macros
C Preprocessor
Why is -march=native used so rarely?
Gcc
Clang
Compiler Optimization
Inherit interfaces which share a method name
C++
Visual C++
Gcc
Multiple Inheritance
When can compiling c++ without RTTI cause problems?
C++
Gcc
Rtti
Pyaudio installation error - 'command 'gcc' failed with exit status 1'
Python
Linux
Gcc
Pyaudio
How does GCC optimize out an unused variable incremented inside a loop?
C
Gcc
Compiler Optimization
Disassembly
how to print __uint128_t number using gcc?
C
Gcc
Do I need to compile the header files in a C program?
C
Gcc
#pragma comment(lib, "xxx.lib") equivalent under Linux?
Gcc
Static Linking
Xcode - configure: error: no acceptable C compiler found in $PATH
Ruby
Xcode
Gcc
Compiler Errors
Rvm
How to list library dependencies of a non-native binary?
Linux
Gcc
Shared Libraries
Cross Compiling
Binutils
What does this GCC error "... relocation truncated to fit..." mean?
C
Eclipse
Memory Management
Gcc
Embedded
Is there a GCC option to warn about writing `this-field` instead of `this->field`?
C++
Gcc
Gcc Warning
Why is `abs()` implemented differently?
C++
Gcc
Compilation
Clang
Tell gcc to specifically unroll a loop
C
Gcc
Pragma
Unroll
gcc: why is the -lm flag needed to link the math library?
Gcc
Libc
Can GCC not complain about undefined references?
C
Gcc
Compiler Errors
Compiler Warnings
Difference between uint and unsigned int?
C
Gcc
Uint
How to add a default include path for GCC in Linux?
Linux
Gcc
Include
Environment Variables
How do I link object files in C? Fails with "Undefined symbols for architecture x86_64"
C
Gcc
Compilation
How to force GCC to assume that a floating-point expression is non-negative?
C++
Gcc
Assembly
Floating Point
Micro Optimization
Determining C executable name
C
Gcc
Compilation
Executable
Linkage
Visual C++ equivalent of GCC's __attribute__ ((__packed__))
C++
C
Visual C++
Gcc
Data Structures
What does it mean to align the stack?
C
Assembly
Gcc
X86
Memory Alignment
Undefined reference to main - collect2: ld returned 1 exit status
C
Gcc
Reference
Working of __asm__ __volatile__ ("" : : : "memory")
C
Gcc
Arm
Embedded Linux
Volatile
Difference between arm-eabi arm-gnueabi and gnueabi-hf compilers
Linux
Gcc
Linux Kernel
Arm
Linux Device-Driver
GCC 7, -Wimplicit-fallthrough warnings, and portable way to clear them?
C++
Gcc
Switch Statement
Warnings
What does the gcc warning "project parameter passing for X changed in GCC 7.1" mean?
C++
Gcc
GCC with Visual Studio?
Visual Studio
Visual Studio-2008
Visual C++
Gcc
Makefile
Are function static variables thread-safe in GCC?
C++
Gcc
Static
Initialization
Thread Safety
This C function should always return false, but it doesn’t
C
Gcc
Why does declaring main as an array compile?
C
Gcc
Clang
Main
GNU compiler warning "class has virtual functions but non-virtual destructor"
C++
Gcc
C: for loop int initial declaration
C
For Loop
Gcc
Syntax Error
How to raise warning if return value is disregarded?
C++
C
Gcc
Static Analysis
gcc, strict-aliasing, and horror stories
C
Gcc
Strict Aliasing
The proper way of forcing a 32-bit compile using CMake
C++
Gcc
Cmake
32bit 64bit
Ld
What is the CMake equivalent to "gcc -fvisibility=hidden" when controlling the exported symbol of a shared library?
Gcc
Cmake
Visibility
OS X 10.9 gcc links to clang
Gcc
G++
Osx Mavericks
Why does `int ;` compile fine in C, but not in C++?
C++
C
Gcc
Language Lawyer
Variable Declaration
Do programming language compilers first translate to assembly or directly to machine code?
Assembly
Gcc
Compilation
Compiler Construction
How to undefine a define at commandline using gcc
Gcc
Macros
C Preprocessor
Change stack size for a C++ application in Linux during compilation with GNU compiler
Gcc
Gnu
Use -isystem instead of -I with CMake
Gcc
Build
Cmake
How do I force cmake to include "-pthread" option during compilation?
Gcc
Build
Build Automation
Cmake
arm gcc toolchain as arm-elf or arm-none-eabi, what is the difference?
Gcc
Arm
Elf
Cortex M3
Eabi
Is this C++11 regex error me or the compiler?
C++
Regex
Gcc
C++11
Single, double quotes and sizeof('a') in C/C++
C++
C
Gcc
How to check if a given file descriptor stored in a variable is still valid?
C
Linux
Gcc
File Descriptor
Different results between gcc and clang when compiling a rather simple c++11 program
C++
Gcc
C++11
Clang