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

Why libfoo.so works and libfoo.so.version doesnt?

I have a library which until now I compiled into objects of this form:libalx-module.soI didn't even know about soname and all that stuff, so I kept it simple. Everything worked.Now I moved to this...

View Article


Calling ScaLAPACK from C++

Hi can any one provide me an example Makefile for calling ScaLAPACK from C++, I am having difficulties.I have the newest version compiled correctly with all the tests passed. I have it compiled with...

View Article


Linker cannot find implementation in include directory

I'm using gcc on WSL to compile a C++Linux project. I wanted to use the base64 encode/decode library so I installed it with vcpkg. I'm including the library's functions via #include...

View Article

Purpose of (mov esi, ecx) & (mov edi, eax)?

What is the purpose of these two lines in the code below? (gcc -g func.c -o func). Seemingly nothing references the ESI and EDI registers after setting it up?0x000000000000116d <+38>: mov esi,ecx...

View Article

Can't find matching LO16 reloc against `.rodata' for R_MIPS_GOT16 at...

I intercept the assembly file(.s file) created by gcc which will be sent to as.Then I append a function at the end of the .s file. After done that, I pass the .s file to as for assemble and as will...

View Article


RISC-V inline assembly struct optimized away [duplicate]

I have a game engine API that is executed as compiled RISC-V. It has been working well until I tried to pass the address of a local struct. The parameter gets optimized away and I'm not sure why....

View Article

For a given source file, how to see the chain of #include substitutions cpp...

A similar question exists here C/C++: How to figure out the chain of header files for a given definition?, but mine is different in that I do not use Visual Studio, (I use GCC).

View Article

What determines where the exception frame goes on Cortex-M4?

I'm struggling with an exception stack frame writing over my local/automatic/stack variables. I'm using FreeRTOS 8.2.1 and Microchip ASF for SAM4LDeveloping with Eclipse MCU 2018/09 and Segger J-Link...

View Article


GCC Backend Development - How do I fix `insn does not satisfy its...

I am working on writing a GCC backend for a new architecture. When I try to compile the following simple program with -O0 (note: this error does not occur when optimizations are enabled):int main(){...

View Article


undefined reference to memset shown even though included string.h

I wrote GDT/IDT table loader for my own kernel, and I linked it with ld. But when I generate the binary, the error has appeared.ld.exe: desc_tablesc.o:desc_tables.c:(.text+0x1e7): undefined reference...

View Article

"Undo" link time optimization for archive file generated by GCC

I have foo.a built by GCC 7 with link time optimization enabled. I would like to generate foo_nolto.a that can be linked without LTO.Is there some command I can run on foo.a to "un-LTO" the file? I do...

View Article

How to know my code is running on CPU or GPU?

I am a beginner in OpenACC. I want to speed up my program by using OpenACC in fortran language with GCC compiler. my Code is :Program Test use openacc Implicit None...

View Article

GStreamer runtime failure in Mac OS

I am trying out the gstreamer tutorials documented here. I am fairly new to C programming as well. While running the program, I am facing the following error../basic-tutorial-1dyld: lazy symbol binding...

View Article


Does it provide any benefits to simultaneously use "__static__((pure))" and...

Does it makes any sense to use __static__((pure)) and static inline both in the same function declaration in c?

View Article

what is meanging of gcc option "-fmessage-length"?

I am using CDT(eclipse for c language). I found that default gcc compiler options are -O0 -g3 -Wall -c -fmessage-length=0. what's the meaning of -fmessage-length? that should be -fflag, but what about...

View Article


Why do ld, nm, objdump report 'no symbols' in this shared object, when...

I have an undocumented shared object, libXSAL.so, which I would like to link against.I have written a partial header file containing the functions I need, with signatures inferred from reverse...

View Article

Printf long long int in C with GCC?

How do I printf long long int and also unsigned long long int in C99 using GCC? I have searched the other posts which suggest to use %lld but it gives these warnings:warning#1: unknown conversion type...

View Article


Convert from int array to char array

After searching around I couldn't understand how to convert a value obtained from an int array [x] to char array [x]Executing this code gives me a null result.I saw syntax like char x = 98;Its work...

View Article

How to vectorize with gcc?

The v4 series of the gcc compiler can automatically vectorize loops using the SIMD processor on some modern CPUs, such as the AMD Athlon or Intel Pentium/Core chips. How is this done?

View Article

Cannot find which file represents the library you need to link

I have built and install code to my directory /usr/local/lib:ls /usr/local/lib:drwxr-xr-x 2 root root 4096 Apr 9 13:04 LibreSSLdrwxr-xr-x 3 root root 4096 Mar 20 09:54 netscapedrwxr-xr-x 2 root root...

View Article
Browsing all 22070 articles
Browse latest View live


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