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

Why does GCC under Rosetta 2 not compile properly Python

I have installed an Item and pyenv according this :https://medium.com/thinknum/how-to-install-python-under-rosetta-2-f98c0865e012In addition I have installed gcc-11 under the rosetta terminalBut when...

View Article


gcc-elf-arm mutex gthread elements not declared

Trying to build particle deviceOS using gcc-elf-arm and I run into these types of errors:/usr/local/gcc-arm/arm-none-eabi/include/c++/11.2.1/bits/std_mutex.h:135:7: error:...

View Article


Switch/Case exiting the code working when I type in the console C

I am trying to make a basic console script for a calculator as a starter C project. When I type anything after the printf("\nOperator: "); Nothing happens it just exits the program. This shouldn't...

View Article

Convert char to int in C and C++

How do I convert a char to an int in C and C++?

View Article

C Headers for threading support on GCC, Raspbian?

I want to compile a very program for my Raspberry Pi that uses the thrd_sleep() function as defined in header file in the c11 standard library. I want to use the C11 library for cross-platform...

View Article


Force static linking of library linked to Xcode target?

My Xcode target links against hdf5 library (using the Link Binary with Libraries build phase). libhdf5 is installed using MacPorts, thus /opt/local/lib contains both the dynamic (.dylib) and static...

View Article

How to compile an ELF which has just one program header?

I'm compiling a c file in xv6 and I used their Makefile to compile. I used readelf and found out the ELF it outputs has just one program...

View Article

Lib SDL C++ Why wont my app compile with -static and libc

I am trying to learn how to use SDL and I've been trying to get my app to run on other systems. when I try to compile using g++ -I src/include -L src/lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2...

View Article


Program won't compile and run on CMD and VS Code terminal

Whenever I try to run any program in either CMD or in the VS Code terminal, this happens. This line doesn't exist on my C source code either. Would anyone know how to fix this?Note: The program I'm...

View Article


how gcc8 process strong symbol and weak symbol for .c and .cpp?

I see these linking rules somewhere (including CSAPP), saying that:When there is multiple strong symbols, linking failed;When there is strong symbol and weak symbol with the same name, linker choose...

View Article

gcc: error: No such file or directory or fatal error: no input files...

gcc: error: No such file or directory //or gcc:fatal error: no input files compilation terminated.Facing this gcc error and try to giving the solution of that if you're missing it.

View Article

How comes GCC produces fastest code with "-mtune=nocona"? (tested on Zen3 CPU)

I have a program that is written in C. The program is compiled with GCC on Linux, *BSD, Solaris.I want the binary to be able to run on all "x64" processors, so I use -march=x86-64 option. Also, I was...

View Article

best practices on my library coded in C

it is awkward, but until now i always copy the *.h and the *.c files to my projekts location. this is a mess and i want to change it!i want to build my own c library and have a few questions about...

View Article


error when trying to offload code to gpu in openmp

Starting build...C:\mingw64\bin\gcc.exe -fdiagnostics-color=always -g "C:\Users\Admin\Desktop\NIT Trichy\CFD\heated_plate_offloading\heated_plate_offloading.c" -fopenmp -o "C:\Users\Admin\Desktop\NIT...

View Article

Why does the x86-64 System V calling convention pass args in registers...

Why is it that 32-bit C pushes all function arguments straight onto the stack while 64-bit C puts the first 6 arguments into registers and the rest on the stack?So the 32-bit stack would look...

View Article


What is the meaning of "gcc is hashed (/bin/gcc)"?

I already have a pre-installed gcc in debian, and I also have compiled another gcc successfully, which is installed in /root/tools/.But after that, I typed type gcc, it showed gcc is hashed (/bin/gcc)...

View Article

16-Bit Error When Developing OpenGL Application on Windows

First, the background information - the question itself follows in bold.I am trying to learn how to write OpenGL programs on 64-Bit Windows 10 Home (Version 21H2 OS Build 19044.1706). I program using...

View Article


Is there any way to suppress errors about missing header files in GCC?

I need to check 2 million C source files for a research project for simple syntax errors like missing (semicolons, parenthesis, ...). Each file is a function without main() and header files.With the...

View Article

Any way to disable `tempnam' is dangerous, better use `mkstemp' gcc warning?

I'm using tempnam() only to get the directory name, so this security warning does not apply to my case. How can I disable it? I couldn't find any switches to do it.

View Article

undefined reference to va_start during the linking phase

Hi I'm trying to create an executable by linking multiple .so files in linux.During the linker phase i'm getting undefined reference to `va_end' error in one of th e.so file i'm linking.I tried to grep...

View Article
Browsing all 22016 articles
Browse latest View live


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