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

Compiling program for old gcc

I have to compile program probcons but there are many errors. In readme autor writes program is compatible with gcc 4.3 but I have only 4.7.2. Is there any way to compile this old program? I don't...

View Article


Compile an asm bootloader with external c code

I write a boot loader in asm and want to add some compiled C code in my project.I created a test function here:test.c__asm__(".code16\n");void print_str() { __asm__ __volatile__("mov $'A' , %al\n");...

View Article


Is it possible to compile a X86 program on a jailbroken iOS device?

I have an iPad running iOS 13.5 and it is jailbroken.I installed clang compiler and vim editor on Cydia store, so I can write code with vim and compile the source code with clang. Both compilation and...

View Article

How can i use this built-in function __builtin_popcount() in Jupyter...

__builtin_popcount() funtion use in Jupyter notebook

View Article

DPDK built error with GCC for array bounds

when i install dpdk into my Debian servermake install T=x86_64-native-linux-gccthere will be an error:error: array subscript is above array bounds [-Werror=array-bounds] rte_mov32((uint8_t *)dst + 2 *...

View Article


gcc -o how to name object file

This command gcc file.c -coutputs me thisfile.ohow to run above command so it outputs me object file with specified name for example file.dbg.o ?

View Article

Check library built flags or options (-frecord-gcc-switches)

I'd like to check the library under investigation what flags and options were built with? I'm trying to use gcc compiler with option -frecord-gcc-switches to understand on my simple shared library but...

View Article

Reading registers in the GCC using a char pointer

I have recently started learning how to use the inline assembly in C Code and came across an interesting feature where you can specify registers for local variables...

View Article


could not read symbols: Invalid operation

I keep getting this when compiling :/usr/local/bin/ld: ../../../Extern/lib/libtiff.a(tif_lzma.o): undefined reference to symbol 'lzma_stream_encoder@@XZ_5.0'/usr/local/bin/ld: note:...

View Article


ARM, VFP, floating-point, lazy context switching

I write an operating system for an ARM processor (Cortex-A9). I try to implement lazy context switching of the floating-point registers. The idea behind this is that the floating-point extension is...

View Article

Header search paths with gcc using C_INCLUDE_PATH

i'm confused about the following include files(with GCC)i've A.c and B.c in folder AAAand B.h in folder BBBin A.c:#include <stdio.h>#include "B.h"main(){ errPrint();}in B.c:#include...

View Article

Unable to place breakpoints into code in Xilinx Vitis IDE v2019.2

I have been debugging my application in Eclipse based Xilinx Vitis IDE v2019.2. Now I would like to place breakpoint into custom driver code for custom IP core. In case I do that following error...

View Article

Can't compile a C program on a Mac after upgrading to Catalina 10.15

There's a previous question Can't compile C program on a Mac after upgrade to Mojave, and the answers to that have covered most of the variations on what goes wrong.Now — as of Monday 2019-10-07 — you...

View Article


Local Label Address in GNU GCC Assembely

I'm trying to use some PPC assembly code in C, but I'm having trouble understanding and transposing this particular piece of ASM into the GNU GCC format:... b 1f1: lis p0, HI(2f) ori p0, p0, LO(2f)...

View Article

creating a docker container from a rootfs

I am dealing with the following issue:A robot has an old Gentoo OS: Linux bob 2.6.33.9-rt31-aldebaran-rt #1 SMP PREEMPT RT Thu Aug 27 21:42:34 CEST 2015The problem:I am trying to build a toolchain for...

View Article


Having problem whit split Golang´s code that import C library

I wrote a code that imports the C library and works fine when all it is in one file. But when I split the code into two files, so that the function is in another file, it doesn´t work.I run Windows 10...

View Article

Why cant i check if i have included stdlib.h on tdm-gcc compiler?

I'm writing a header file in C and need stdlib.h for it to work. But, when I check if _STDLIB_H is defined, the pre-processor says it's not, even if I include the file. I have tried it on multiple...

View Article


open62541 (OPC UA) with lwip and freeRTOS on STM32H7 compile problem

I have working system with lwip and freeRTOS on this bord. I would like to add open62541 implementation of OPC UA with single .c and .h files like described...

View Article

Understanding LeakSanitizer outputs

I use AddressSanitizer from g++ on my program, and there are some outputs I have troubles understanding and acting on.I was using g++-4.8.4 before, and I'm pretty sure there was no leak reports, but I...

View Article

Ubuntu - Linking boost.python - Fatal error: pyconfig cannot be found

Having some issues, now I have read the following:hello world python extension in c++ using boost?I have tried installing boost onto my desktop, and, done as the posts suggested in terms of linking. I...

View Article
Browsing all 22295 articles
Browse latest View live


Latest Images

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