Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Browsing all 22001 articles
Browse latest View live

autoconf ignoring CFLAGS?

I'm building a package (vice 3.4) that uses GNU autoconf. Running ./configure fails with the following message:checking size of time_t... 0 configure: error: can not figure type of time_t error: Bad...

View Article


Print GCC version without license/copyright information

I'm both writing Makefiles and setting up Docker images for building in a CI environment. In these various scripts I want to print the version of the tools I'm setting up and/or using.gcc --version...

View Article


gcc prints no such header file when compile it from upper level folder

I have this command here:gcc -MD -fno-builtin -nostdinc -fno-stack-protector -Os -g -m32 -I. -c -o boot1lib.o boot1lib.c It runs fine if I run this in the folder where boot1lib.o and boot1lib.c...

View Article

How to install and use Openmp in vs code

I have install and run correctly c/c++ in vscode, my gcc version is 8.2.0 and I have installed MinGwI use VS code to run my C program#include <stdio.h> #include <stdlib.h> #include...

View Article

Inserting "marker" instructions into assembly without GCC reordering them

For purposes of doing performance analysis it is useful to be able to tell which line of C code goes with which line of generated assembly code. This can be very difficult once a sufficient number of...

View Article


link time warning about VPF registers

I'm trying to port a project from Cortex M0 to Cortex M4 with hardware floating point extension, the new target soc is nRF52832.The error I am getting from the linker is the...

View Article

setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with...

When I try to install odoo-server, I got the following error: error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Could anyone help me to solve this issue?

View Article

Parse $PATH variable and save the directory names into an array of strings

I want to parse the $PATH variable of Linux, and then save the directory names that are getting separated with ':' into an array of strings.I know it's a simple task but I am stuck and any help would...

View Article


qemu: uncaught target signal 11 (Segmentation fault) - core dumped, when...

I just noticed that I am unable to have a function return a struct. I am running this on ARM32/debian docker image with threads enabled.This is the function that gives me the run time error:struct...

View Article


flex parse - not parsing

Let's assume I have this rules for my grammar :Check complete code at bottom Both works, is there any way I can check for both like creating a S3 {S1}|{S2}. This doesn't work.Currently my whole code...

View Article

GNU g++ preprocessor/compiler: printf value

Hi im looking for a solution for GCC to printf a value which is calculated during compilation.There is message pragmas but they can only print a user input string. what im looking for is a printf style...

View Article

AVR-GCC file output structure

I already searched the web, especially the avr-gcc website. I want to know the STRUCTURE of the output file, of sourcecode, compiled with avr-gcc.Example of a standard Microsoft .EXE file:00h DW...

View Article

OCaml and gcc on Windows

I installed OCaml for Windows from (https://fdopen.github.io/opam-repository-mingw/installation/). On the home page there is reference to the GCC compiler ("..the GCC compiler (mingw-w64) that will be...

View Article


configure: error: no acceptable C compiler found in $PATH

I am trying to Build and Install the Apache Thrift compiler and librariesI had to type this command is shown in instructions ./configure && make But I get this error:checking for gcc... no...

View Article

Implication of GCC warning: ignoring attributes on template argument...

I'm using __m256 as an argument for a template class (see code below). When compiling with g++ version 6.2 on Ubuntu 16.10 (Yakkety Yak), it warns me about attributes being ignored on the template...

View Article


Mac OS X R error "ld: warning: directory not found for option"

I am trying to install an R package from source, but getting an error:* installing *source* package ‘mclust’ ... ** package ‘mclust’ successfully unpacked and MD5 sums checked ** libs gfortran-4.8...

View Article

Why does gcc gives me maybe-uninitialized warning for deque::insert with a...

Why does gcc gives me maybe-uninitialized warning for deque::insert with a filtered range when compiling with -O2 and -DNDEBUG#include <deque> #include <vector> #include...

View Article


can visual studio use debug information generated by gcc?

Pretty simple question. I have an executable that was generated with -g option in gcc to output debug information into the executable? Is it possible for me to get this debug symbol information into...

View Article

How does the lambda macro create a lambda?

I found this piece of code on GitHub but didn't quite understand it:#define lambda(ret_type, _body) ({ ret_type _ _body _; }) Then:int (*max)(int, int) = lambda(int, (int x, int y) { return x > y ?...

View Article

STM32F446xx Peripheral Register Access Difference Between Using Dereferenced...

I'm trying to simply light up an external LED (wired to my STM32F446RE's Port C Pin 10). I'm using the gcc-arm-none-eabi 8-2019-q3-update for windows for my compiler and Keil uVision5 IDE for...

View Article
Browsing all 22001 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>