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

running gcc failed: exit status 1 in golang in windows

when i run my code fyne package GUI in golang , i get this error in terminal: C:\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1...

View Article


Changing compiler optimization levels doesn't change the compiled binary

I have been using arm-linux-gnueabi-gcc toolchain to cross compile a binary to arm. The strange thing is I don't get any differences in the compiled binaries though I change the optimization level....

View Article


Include error while including bits/stdc++.h in VS code [duplicate]

I am writing code in VS code in CPP. When I try to include bits/stdc++.h then there is always a red line beneath it indicating #include errors detected. Please update your includePath. Squiggles are...

View Article

Why libcurl with SSL produces undefined reference errors on Windows?

I have been trying to set up libcurl for quite a while. The pre-built binaries available on the official website were not working for me (I was stuck with some strange LTO wrapper errors; most probably...

View Article

Compile ncftp client for 32 bit target [closed]

I have to compile ncftp client source code on 64 bit architecture to create 32 bit binaries. I don't have admin rights to place 32 bit libraries for compiling it with CFLAG= -m32. How can I do it...

View Article


Compound literal and designated initializer warning from GCC but not Clang

Compiling with gcc -std=c99 -Wextra this piece of code:#include <stdio.h> struct T { int a; int *b; int c; }; int main(void) { struct T t = {.b = ((int []){1, 1})}; printf("%d\n", t.b[1]); return...

View Article

Run ./configure from bash script fails due "error: cannot compute suffix of...

I'm trying to automate some stage of compile/build on Linux RHEL7 host using a bash script, but when i try to use ./configure it fails due to :configure:3793: error: in...

View Article

Unable to build pymqi on window - errors compiling

I am trying to build and install pymqi, but I am getting a lot of errors trying to compile it.I have done the following:Get and install MinGW gccCreate libpython2?.aUsing instruction from:...

View Article


Write Bootloader in C

I am a newbie in writing bootloaders. I have written a helloworld bootloader in asm, and I am now trying to write one in C. I have written a helloworld bootloader in C, but I cannot compile it.This is...

View Article


different clang path in macos

I have different path for gcc and clang path. How can I change this ?(base) Shakhawats-MBP:bin shakhawat_hossain_turag$ gcc --version Configured with:...

View Article

Makefile creating object files in home directory

I used this article http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/ to create my makefile (shown below), but sometimes when I run make, some of my object files are created in...

View Article

gcc cross-compile -mips1 not generating MIPS-I

I'm am targeting an old router need MIPS-I executables but -mips1 produces MIPS32 executables.Here is the compile command:buildroot-2019.02.5/output/host/bin/mips-linux-gcc-7.4.0 -march=mips1...

View Article

memory alignment within gcc structs

I am porting an application to an ARM platform in C, the application also runs on an x86 processor, and must be backward compatible.I am now having some issues with variable alignment. I have read the...

View Article


Downcasting shared_ptr to shared_ptr?

Update: the shared_ptr in this example is like the one in Boost, but it doesn't support shared_polymorphic_downcast (or dynamic_pointer_cast or static_pointer_cast for that matter)!I'm trying to...

View Article

Using gcc plugins with cross compiler, undefined symbol

I'm trying to see if it's possible to use a gcc plugin in an ARM cross compiler (arm-none-eabi-gcc). I'm running into compiler errors however, and am questioning whether what I'm trying to do is...

View Article


What is the difference between -mfpu=fpv5-sp-d16 and -mfpu=fpv5-d16?

I'm trying to get the double precision FPv5-DP-D16-M FPU working on an ARM Cortex-M7f with an arm-none-eabi-gcc compiler. Based on the documentation, it would appear that I have two options to choose...

View Article

How to make ld (linker) to create new dynamic tags in ELF without flag...

How to make ld (linker) to create new dynamic tags in ELF without flag "--enable-new-dtags"?Just compiled binutils-2.30 makes old tags by default.Test program:$ echo "int main(void) { ; return 0;...

View Article


Compile BasicCall linphone linked to liblinphone failed

I tried to compile the code sample at https://www.linphone.org/snapshots/docs/liblinphone/multilang/samples/samples.html, but there was an error indicating that the "core.h" library was not found. I...

View Article

Firefox sound does not work, I tried to install PulseAudio but an ERROR...

I've installed BionicPup linux on my i686 pc. It comes with the Ligth web browser but I like Firefox because I can add extensions like UBlock or NoScript. Everything was going rigth till I've tried to...

View Article

Image may be NSFW.
Clik here to view.

Weird PE sections from cygwin-gcc generated files

I have a simple program compiled with cygwin:gcc -DHAVE_CONFIG_H -I. -fPIC -I/usr/local/include *.c -o main And it contains weird PE section names like /4:Does anyone know what's happening?

View Article
Browsing all 22000 articles
Browse latest View live


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