Category "gcc"

Windows 10 error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1

I am struggling to fix error: linking with 'x86_64-w64-mingw32-gcc; failed: exit code: 1, I have installed TDM-GCC-64 and Cygwin and added the

Do FMA instructions of different CPUs have different intermediate accuracy? If yes, then how does a compiler equalize the floating-point behavior?

When I run fma-optimized horner-scheme polynomial computation (for cosine approximation), it makes 0.161 ulps error on FX8150 but 0.154 ulps on godbolt.org serv

no speedup using openmp simd and different result between icc and gcc [duplicate]

I am new to Openmp and now trying to use Openmp + SIMD intrinsics to speedup my program, but the result is far from expectation. /* program:s

Make cause gcc to throw "No such file or directory" even though gcc in command line works fine [closed]

I want to use make to compile my c programs, but make seems to throw an error when simply using gcc doesn't. What I tried: ┌─γ

Code that compiles with gcc but not with g++

I am writing a program in c, but i need to use a c++ library to work with an ADC's. In my code I have a library that I wrote called scheduler, this library comp

Why does clock() returns -1 in C

I'm trying to implement an error handler using the clock() function from the "time.h" library. The code runs inside an embeeded system (Colibri IMX7 - M4 Proces

How can a compile a c codefile as a efi app?

I have a c code file and I would like to compile it as an efi application. How can this be done using linux and windows cli tools (i.e. without creating a visua

/usr/include/GNUstepBase/GSVersionMacros.h:359:16: fatal error: 'objc/blocks_runtime.h' file not found

I am trying to build a objective-c library integrated to a swift project on linux. I have this Package.swift for my main project: // swift-tools-version:5.5 //

Why conversion from '<brace-enclosed initializer list>' to 'std::tuple<A, bool>' is ambiguous error occurs with GCC 11?

I have the following code #include <tuple> struct A{ int a; int b; }; std::tuple<A,bool> get(){ return {{}, true}; } With GCC 9.* an

Compile all C files in all of the children directories

So, I'm making a game with raylib and I need to compile all the .c files at once. The files are in separate folder inside the 1st one(Like "MainFolder/PlayerFil

HOW to link or well include winrt to compile your project

fatal error: experimental/coroutine: No such file or directory this is the error the compiler gives me here's main.cpp #include <fstream> #include <io

how to get the bare bone compiled binary code of a C function?

I'm trying to implement an embedded firmware on an stm32 F4 micro that takes an binary code from the serial and execute it on the micro. The idea is pretty simp

How are char arrays / strings stored in binary files?

When I compile this code using different compilers and inspect the output in a hex editor I am expecting to find the string "Nancy" somewhere. #include <stdi

clang 14.00 : _GLIBCXX11_DEPRECATED_SUGGEST("std::bind");

Installed clang 14.0 using GNU/Guix's clang-toolchain package. I am getting depreciated feature usage error when trying to compile a simple code: //build with:

Removing trailing newline character from fgets() input

I am trying to get some data from the user and send it to another function in gcc. The code is something like this. printf("Enter your Name: "); if (!(fgets(Na

While building GCC 8.5.0: "error: `CC' has changed since the previous run"

I'm building GCC 8.5.0 on a Devuan Chimaera GNU/Linux system (using GCC 10). I've configured with ./configure --disable-gnat, then ran make. At some point, I ge

Im trying to compile program on Ubuntu and dont understand some things

Im a Windows dev who has no expirience on building C/C++ programs on Linux, but now I need to. Right way would be to go and learn Make and g++ compiler, but bef

pybind11.h: No such file or directory

I am trying to compile Deepstream 6.0 Python bindings. My guess it that the issue not related to Deepstream, but to general C/C++ compiling issues: sudo apt ins

Why there is a delay in running a console application just created?

I have noticed this for a while. After building a cpp console application, when i run it through command prompt, the first time it takes some time to run. The s

terminate called after throwing an instance 'std::__ios_failure'

In Ubuntu20.04 gcc9.4.0 `void read_txt_config(const std::string &path) { std::cout << std::endl << "Reading configuration file: "; std::ostr