GCC is the GNU Compiler Collection. It's the de facto standard compiler for C, C++, Go, Fortran, and Ada on Linux and supports many other languages and platforms as well.
38,934 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Unanswered (my tags)
When GCC does not provide __cpp_lib_uncaught_exceptions feature?
Following piece of code does not work right on Alpine Linux: #ifndef __cpp_lib_uncaught_exceptions namespace std { int uncaught_exceptions() noexcept { return std::uncaught_exception(); ... c++ linux gcc
John Tracid
- 3,756
Large header file vs compilation time [closed]
Im working on a large project, my issue is as follows: I have a large (200k lines of code) header file which is auto generated code, it contains about 3k classes (all of them are small classes). And ... c++ gcc compilation
Mohammed Kiwan
- 11
using C copy a 1D char array into 2D char array
I am trying to copy a 1D array of Strings into a 2D array of strings in C. I was able to achieve this with integer enter image description here //Here is what I tried for integers. int main() ... arrays c gcc multidimensional-array c-strings
Moodkiller
- 31
rpc/rpc.h file not found on windows
I am working on sunrpc library developed by Sun Microsystems on windows. I have downloaded GnuWin32 sunrpc4.0 on windows 10. I am running rpcgen -a -C -Y "C:/MinGW/bin" add.x command and I ... windows gcc cygwin sunrpc
shravani
- 1
How to use GCC PGO with source code in different folder?
I've compiled PGO-instrumented build from A/src and collected the profile. Now I want to apply this profile when building from B/src. Is this possible? GCC complains about the lack of profile since ... gcc optimization pgo
Dan M.
- 3,619
bad defsym; format is --defsym name=value
Explanation: I've created an STM32 project and aim to get a platform-independent build and output file like .hex, .bin, and .elf. For this, I created the project under the CMake build system. CMake ... assembly gcc build linker ld
codeluyor
- 25
What is unlocked_stdio in C?
So, I was looking for random linux manual pages, when I encountered this weird one, you can see it by executing "man unlocked_stdio", or you can view it in your browser by going to this page ... c linux gcc stdio manpage
dfmaaa1
- 45
RISCV inline assembly compilation
To start with optimizing my code I have to start with adding assembly code into my C which is crosscompiled with gcc riscv toolchain, to start with I trying to implement simple riscv inline as follows ... gcc inline-assembly riscv riscv32
jasan singh chugh
- 1
Installed gcc 12.1.0 in /usr/local/bin and now ubuntu cannot find and point to it
I have tried all the solutions of similar questions and none works. I have installed gcc in /usr/local/bin and this my PATH variable echo $PATH /usr/local/gcc-12.1.0/bin:/usr/local/sbin:/usr/local/bin:... gcc path ubuntu-20.04
skghoolala
- 21
Reading an update across threads
In my application, I have a block of shared memory, which one thread periodically writes to, and another thread periodically gets (and then sets to 0) Thread 1: @onevent: __atomic_store(addr, val, ... c gcc concurrency atomic
Mihir Shah
- 17
charconv header not found gcc 12
I'm running Debian 9 on WSL 2 and I'm trying to compile C++ code that uses the <charconv> header. I have the line set(CMAKE_CXX_STANDARD 17) in my Cmake file so it's definitely using C++ 17 but ... c++ linux gcc c++17
ishaangupte
- 197
Replacement for Omagic flag?
When switching from using GCC to CLANG, for some reason including the -N/--omagic flag increases my .elf executable size by ~1000x, as the physical address of an init_array section that is otherwise ... gcc clang llvm ld lld
ijustdontgetit
- 21
memcpy for volatile arrays in gcc C on x86?
I am using the C volatile keyword in combination with x86 memory ordering guarantees (writes are ordered with writes, and reads are ordered with reads) to implement a barrier-free message queue. Does ... gcc x86 volatile memcpy lock-free
personal_cloud
- 3,524
cannot open source file stdio.h C in vscode
I've been trying to learn C recently. When I execute the following code in visual studio code: #include <stdio.h> int main() { // variable declaration int a, b, c; // user ... visual-studio-code gcc header-files
icyfirejosh4352
- 3
ARM crashing upon returning from a function [closed]
The device consists of an Cortex M4 main processor and an Cortex M0+ co-processor running the network stack. I've been trying to influence the bluetooth advertisement beacon behavior - when are they ... gcc segmentation-fault arm ipc
Vorac
- 8,164
153050per page