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

fasttext building error as Python module in Docker container

I have been trying to install fasttext in a docker container. I am getting the same error after trying many pre-installations.Essentially, I have the same code in windows and I installed via pip in...

View Article


How allocate more memory to my docker container running the gcc command?

I have to compile C code which contains python function. I have a Ubuntu 19 64 bit machine and I need to compile the C code for my raspberry pi 3model b+ running raspbian stretch. To do that, I...

View Article


Is it possible to build GCC Cross Compiler and Binutils with multiple targets?

I know how to configure GCC and Binutils for a single target, --target=i686-elf, but I am wondering if is it possible to configure them for multiple targets, i.e both i686-elf and Win32 PE executables.

View Article

is it possible to run TDM64-GCC compiler to run with code::blocks

I am trying to build 64 bit applications using 64bit TDM-GCC and Code::Blocks IDE.What I am unable to configure is the combination of the compiler and IDE.I have looked at the IDE wiki and TDM wiki;...

View Article

How do I determine the required version of a dynamic library?

When running a binary, I get the following error:dyld: Library not loaded: /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libgstsdp-1.0.0.dylib Referenced from:...

View Article


How to vectorize and optimize this functions in C?

I have this functions, the result is correct but the compiler don't vectorize this.How can I achive that the compiler vectorize this and how can I optimize this codes?void LongNumSet( char *L, unsigned...

View Article

How to make ARM GCC linker put a version number at a fixed address at the end...

I'm developing firmware update code for a Cortex-M4 based system and need a way for my firmware to obtain the version number of the separately-linked boot loader so I can determine if it must be...

View Article

makefile place the generated obj into particular folder

I am trying to reorganize my project to put all generated object file in a particular "obj" folder, when I just handle c files I used below makefile and it works fine(I put src1.c in src1 dir,src2.c in...

View Article


gcc linking or running with llvm shared libraries. Configure gcc to us gcc...

I'm trying to trace a huge memory leak in my application that only occurs on Linux Arm64.Valgrind shows me I have a clean app (no leaks or invalid writes) on both Linux Intel and Linux Arm64.However...

View Article


How to assemble ARM instructions (using GCC)

I want to assemble ARM instructions (= converting the textual assembly instructions to machine code).I tried using IDA Pro to disassemble an ARM binary but upon assembling it told me:Sorry, this...

View Article

Issue with Clang Compiler and gcc for MAJIQ pipeline installation

I was trying to install a splicing program "MAJIQ". I was able to run it on Centos but unable to install on MAC OS. Description of the MAJIQ program.Before installationMAJIQ installation requires the...

View Article

Why does the C preprocessor interpret the word "linux" as the constant "1"?

Why does the C preprocessor in GCC interpret the word linux (small letters) as the constant 1?test.c:#include <stdio.h>int main(void){ int linux = 5; return 0;}Result of $ gcc -E test.c (stop...

View Article

gcc linking or running with llvm shared libraries. Configure gcc to use gcc...

I'm trying to trace a huge memory leak in my application that only occurs on Linux Arm64.Valgrind shows me I have a clean app (no leaks or invalid writes) on both Linux Intel and Linux Arm64.However...

View Article


Mac OS X R error "ld: warning: directory not found for option"

I am trying to install an R package from source, but getting an error:* installing *source* package ‘mclust’ ...** package ‘mclust’ successfully unpacked and MD5 sums checked** libsgfortran-4.8 -fPIC...

View Article

Is there a way to command during runtime to not to call a particular function...

I want to specify during run-time to ignore a function call for a function (which is of course defined) inside my executable. Please suggest some methodology for doing the same in C language on Linux...

View Article


Setting __attribute__((used)) to C variable/constant has no effect

On ARM GCC (plain C code), when I declare a constant as in__attribute__((used,section(".rodata.$AppID")))const uint8_t ApplicationID[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,...

View Article

How can I mitigate the impact of the Intel jcc erratum on gcc?

If I have a chip that is subject to the Intel jcc erratum, how I can enable the mitigation in gcc (which adjusts branch locations to avoid the problematic alignment), and which gcc versions support it?

View Article


Macro iterating and returning value [duplicate]

I came across the following macro:#define ITERATE_MACRO(type, entries, size, n) \({ \ unsigned int __i, __n; \ int __ret = 0; \ type *__entry; \ for (__i = 0, __n = 0; __i < (size); \ __i +=...

View Article

Does GMP work with gfortran? Is there an arbitrary precision arithmetic...

I'm working on some Fortran things, probably Fortran90 or Fortran95, and was wondering if GMP works with gfortran compiler. If so, how would one use the arbitrary precision arithmetic in gfortran?...

View Article

Are compound statements (blocks) surrounded by parens expressions in ANSI C?

Browsing the Linux kernel sources I found some piece of code where a block of statements surrounded by parenthesis is treated as a expression a la lisp (or ML), that is, an expression which value is...

View Article
Browsing all 21993 articles
Browse latest View live


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