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

Can gcc be configured to compile position-independent code for the code but...

I'm trying to build bootable code for an ARM M7-based embedded system that is able to execute in place at two different locations in the QSPI, so that if one version gets corrupted, the backup version...

View Article


How to use AddressSanitizer with GCC?

I'm trying to build my project with g++ -O0 -g -fsanitize=address -fno-omit-frame-pointerbut get lots of errors like:/home/user/libs/opencv/include/opencv2/core/mat.hpp:715: undefined reference to...

View Article


What does %call16 and .reloc mean in mips?

I have converted a c code into mips32 using gcc compiler but there are some parts that I did not understand.This is c code:int main(){float fibSquared;int F[10] = {0};F[0] = 0;F[1] = 1;for(int i = 2; i...

View Article

GCC cross compiler for DOS produces linker errors for simple "Hello world!" in C

I've tried to configure GCC 9.3.0 to produce executable files for DOS. However, for a simple "Hello world!" program in C, it...

View Article

What is the correct version of CUDA for my nvidia driver?

I am using ubuntu 14.04. I want to install CUDA. But I don't know which version is good for my laptop. I trace my driver that is:$cat /proc/driver/nvidia/versionNVRM version: NVIDIA UNIX x86_64 Kernel...

View Article


Can this piece of code be modified such that it works with fast-math enabled?

Can the code below be modified such that it works correctly even when compiled by GCC with fast-math enabled? #include <iostream>#include <float.h>using namespace std;int main(){ char...

View Article

when I include atomic.h, GCC says No such file, why?

I want to use atomic API, and I include . I don't know how to use it! Thank you!I have it in /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/atomic.h.I also add...

View Article

LTO optimization behaviour between GCC and Clang

According to this, as of GCC 5, object files compiled with LTO enabled do not necessarily need to have the same optimization flags during the linking phase. However, I could not find equivalent...

View Article


With gcc inline assembly can you set %r# registers as input constraints?...

I have this function:#include <cstdint>using ::std::intptr_t;struct syscall_param { syscall_param(intptr_t v) : value(v) { } syscall_param(void *v) :...

View Article


How can a shared library (.so) call a function that is implemented in its...

I have a shared library that I implemented and want the .so to call a function that's implemented in the main program which loads the library.Let's say I have main.c (executable) which contains:void...

View Article

Use GIMPLE plugin to analyze multiple .C files

I am working on my GIMPLE plugin to count basic block-level coverage info. Currently it works well for single .C file. Basically it mimics -fsanitize-coverage=trace-pc but has more features. My problem...

View Article

Trying to Run SDL 2 on a GCC compiler with Cygwin

I am trying to teach my self C and how to use the SDL2 library with it. I Run Windows 10 but I have been using Cygwin for C coding and compiling. All my previous test programs ran on the command line,...

View Article

GCC compile error -- Compiler itself seems to error with truncating LOG file...

I have just setup a Linux box with RHEL 8 Server package and installed gcc along with developers tools. My first program ICECast 2.4.4 is my first "configure" and "make" project on this system. During...

View Article


Linker not recognizing symbols present in library [duplicate]

I've got an object file which I'm trying to link. It references symbols defined in a .so file which I created. My command is (something like)gcc -L$(PWD)/some_dir -lmylibrary -o program program.owhere...

View Article

Image may be NSFW.
Clik here to view.

How to tell gcc to not align function parameters on the stack?

I am trying to decompile an executable for the 68000 processor into C code, replacing the original subroutines with C functions one by one.The problem I faced is that I don't know how to make gcc use...

View Article


MITK returns error "dunno about this gcc"

I’m a student who is in internship by distance. So in my internship, I need to use Qt with CMake, MITK , VTK. I just know Qt, I don’t know the others.I need to use the project of my teacher and add...

View Article

Cross-compiling openjdk 11u to aarch64

I am trying to cross-compile openjdk 11u to aarch64. I am using following command:bash configure --openjdk-target=aarch64-linux-gnu --disable-warnings-as-errorsnext I use make command to compile...

View Article


getting errors in cross-compiling openjdk 11u to aarch64

I am trying to cross-compile openjdk 11u to aarch64. I am using following command:bash configure --openjdk-target=aarch64-linux-gnu --disable-warnings-as-errorsnext I use make command to compile...

View Article

C/C++ with GCC: Statically add resource files to executable/library

Does anybody have an idea how to statically compile any resource file right into the executable or the shared library file using GCC?For example I'd like add image files that never change (and if they...

View Article

GCC Bitwise Attribute

What does GCC's __attribute__(bitwise) mean? The attribute isn't mentioned in the info pages of GCC-4.6. I stubled upon it in the file open-iscsi-2.0.871/include/iscsi_proto.h in source the project...

View Article
Browsing all 21994 articles
Browse latest View live


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