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

Cygwin GDB debugger cannot find debug files

I am using VS Code and I try to debug an executable with cygwin gdb compiled with cygwin gcc.The problem is that it searches for the files within the build...

View Article


configure: error: --with-readline=yes (default) and headers/libs are not...

I already read about this error and solutions in some forums, but i don't know what is happening.I have this error compiling R (using GCC 12.2.0):checking for readline/history.h... yeschecking for...

View Article


Issue with absolute value of 64 bit integer

This C code tries to find the absolute value of a negative number but the output also is negative. Can anyone tell me how to overcome this?#include <stdio.h>#include <stdint.h>#include...

View Article

Is it possible to link LAPACK, LAPACKE, and BLAS libraries with GCC instead...

I have an application that is written in C. I would like to use the LAPACK library to do some linear algebra calculations. I am using LAPACKE, which is the C interface to LAPACK. The C code compiled...

View Article

In c programming language, i keep getting this error [duplicate]

Using gcc as a compiler, i always get this "error":C:\Users\Miguel\AppData\Local\Temp\ccyRGBTU.o:EscapaManin.c:(.text+0x111): undefined reference to...

View Article


How do I link .obj assembler file correctly? [duplicate]

I want to check, that my assembler code works and copy "hello world" program. It compiles and links succesfully, but it doesn't have output. I use NASM, WinGW64a.asm codeglobal _startsection...

View Article

Error code 134 ONLY During Release Mode on function return

I'm running a function that implements moving obstacles that I've encapsulated in an object. When I run 6 obstacles, there are no problems, but at 8, the function throws error code 134. When I run...

View Article

Issues installing python package on windows

I'm trying to install python-rocksdb on a windows 10 machine and I'm coming across some issues with the install.I have successfully installed rocksdb first using the vcpkg method.When running pip...

View Article


solution to rdtsc out of order execution?

I am trying to replace clock_gettime(CLOCK_REALTIME, &ts) with rdtsc to benchmark code execution time in terms of cpu cycles rather than server time. The execution time of the bench-marking code is...

View Article


How to recompile with -fPIC

I was trying to reinstall my ffmpeg, following this guide, on my ARM Ubuntu machine. Unfortunately, when I compile a program which uses this lib I get the following failure:/usr/bin/ld:...

View Article

gcc why does -Woverflow not catch int8_t i = 128;?

edit: it's probably a gcc bug. reported: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108798int8_t has a range of -128 to 127, so when compiling the code#include <stdint.h>int main(){ int8_t i =...

View Article

Build RocksDB static library using vcpkg and custom gcc on Windows

I am trying to create Kotlin/Native bindings for RocksDB. This requires that RocksDB is compiled using gcc and g++ version 9.2.0, because that is the only version that Kotlin/Native supports. If I...

View Article

How to disable inline assembly in GCC?

I'm developing an online judge system for programming contests. Since C/C++ inline assembly is not allowed in certain programming contests, I would like to add the same restriction to my system.I would...

View Article


GCC Linux DB2 COBOL compiler option issues

Compiling/Linking COBOL code on a RHEL 8.6, which compiles fine but then when it tries to link I get an error with one of the variables:cob2 -F//etc/cob2.cfg -v <cobolprog.cbl> -L/lib64 -ldb2...

View Article

Different import list of symbols for Debug and Release build

I can successfully build the same C++ code using GCC-8 for Debug (-g -O0) and Release (-g -O2) build.I can successfully debug the Release-executable on a remote host, but I can't debug the...

View Article


ELF replace WSL-path to Windows-Path (GCC / ARM / CortexM)

If you build a cortexM firmware on linux (WSL in this case), the resulting *.elf file for debugging will carry "nix" paths,...

View Article

How to link libraries when internally linked libraries share the same...

My program my_program uses function funA() from package_1(nvidia's jetson_multimedia_api) present in say lib_1 and funB() from package_2(opencv 4.4) present in say lib_2. Both of these packages are...

View Article


Messy output for HelloWorld.cpp using gcc in vscode wsl [closed]

I am absolutely new to C++. I have followed VScode tutorial.My helloWorld.cpp file is#include <iostream>#include <vector>#include <string>using namespace std;int main(){...

View Article

Only one IRQ comes in upon initializing IDT

I am trying to work on an x86 operating system and coding it in C. My OS uses GRUB-Multiboot and thusfar I have been able to get a GDT working.I am currently working on my IDT and have run into a...

View Article

Arm GCC linker: how to put data at absolute address in (rw)-non-volatile memory

I am facing the following problem. I am programming an ARM cortex M4 micro controller and I would like it to have a default value for IP address, netmask, gateway and so on. This default values should...

View Article
Browsing all 22201 articles
Browse latest View live


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