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

How to test if your Linux Support SSE2

Actually I have 2 questions:Is SSE2 Compatibility a CPU issue or Compiler issue?How to check if your CPU or Compiler support SSE2?I am using GCC Version:gcc (GCC) 4.5.1When I tried to compile a code it...

View Article


sqrt is only defined when argument is nonnegative

This compiles fine#include <math.h>int main(void) { double i = sqrt(9.0);}If I change 9.0 to -9.0, then my compiler (GNU C) gives an error about an undefined reference to 'sqrt'. I was expecting...

View Article


why give error make: execvp: ar: Bad file number

when I archive object file by "ar" then it displaymake: execvp: ar: Bad file numberbut when object list size small then it successfully archivewhat is the problem and how is it removeI am using...

View Article

How to change HOME directory and start directory on MSYS2?

I have installed MinGW-w64 and MSYS2. But how do I change the HOME directory in MSYS2? So that when I type cd $home or cd ~ it goes to another directory that I defined.And how do I write a code so that...

View Article

pipenv run pip install langchain-chroma gives errors

I am trying to learn genAI and installing langchain-chroma as part of the training. I get the following error. It shows an error unknown compilers. I am running this on windows. Is there a way to get...

View Article


GCC stricter than Clang for resolving dependent names for concepts

I've been playing around with C++20 concepts and ran into an issue with my GCC 9.4 compiler, which I ultimately want to support. I created this minimal reproducible example to showcase the...

View Article

How to fix compat.cc:22:23: fatal error: string_view: No such file or...

I'm trying to compile Kaldi with Make under Kaldi/tools, and in the open-fst compilation it's failing and here's the error messagecompat.cc:22:23: fatal error: string_view: No such file or directory...

View Article

Installing gcc13 and g++13 in Debian bookworm rust docker image

I am trying to install gcc13 and g++13 in the following Rust docker image.# BuilderFROM rust:1-bookworm AS builderRUN apt updateRUN apt install software-properties-common -yRUN apt-get install...

View Article


How to use multiple versions of GCC

We have a new application that requires glibc 2.4 (from gcc 4.1). The machine we have runs on has gcc 3.4.6. We can not upgrade, and the application must be run on this machine. We installed gcc 4.1,...

View Article


Trap representation

What is a "trap representation" in C (some examples might help)? Does this apply to C++? Given this code...float f=3.5;int *pi = (int*)&f;... and assuming that sizeof(int) == sizeof(float), do f...

View Article

How do I determine the evaluation order of printf?

I have read many questions on this topic already:What is the order of evaluation of printf(..) parameters?what the order of evaluation of function in printfWhat is order of evaluation in printf() for...

View Article

databricks python dynamic linking

I'm trying to compile a python code using cython and run it as an executable on databricks runtime.I'm using the following commands for compilation:cython --embed -3 main.pygcc...

View Article

How to compile my own glibc C standard library from source and use it?

I am trying to compile my own glibc. I have a directory glibc, which contain the glibc source code I downloaded from the internet. From that directory I typed mkdir ../build-glibc. Now from the...

View Article


Problem when porting a program compiled using a new compiler

On the CentOS 7.5 operating system, the gcc compiler version 13.3 was built from the source code. Using this compiler, the test program was builtg++ main.cc -std=c++20After the build, the program runs...

View Article

`fatal error: glib.h: No such file or directory` when compiling with gcc

I tried installing gtk and glib on Linux using:sudo apt-get install libglib2.0-devandsudo apt-get install libgtk2.0-dev...but when building with gcc I still get this error:fatal error: glib.h: No such...

View Article


Understanding GCC inline assembly code that uses memory source operands and...

I'm reading the research paper Privado: Practical and Secure DNN Inference to hide the input-dependent branch. I am trying to understand the following GCC assembly code in that paper:float temp;asm...

View Article

std::bitset space usage on GCC linux 64-bit

Do all versions of GCC C++ standard library on 64-bit Ubuntu implement this bitset with bit packing?I have a special bit data structure that I want to ensure is as space efficient as possible (up to...

View Article


cannot find -lMagick++-6.Q16

I try to install magick R package but I get error:g++ -std=gnu++11 -shared -L/path/apps/R/3.5.1-20180807-test/x86_64-linux-2.6-rhel6/lib64/R/lib...

View Article

std::bitset and std::vector space usage on GCC linux 64-bit

Do all versions of GCC C++ standard library on 64-bit Ubuntu implement this bitset and vector bool specialization with bit packing?I have a special bit data structure that I want to ensure is as space...

View Article

How to compile LD_PRELOAD for most systems

I have a LD_PRELOAD file. On what OS and conditions should I compile this preload to work on most systems (Unix/Linux)? The most wanted are FreeBSD, Ubuntu, CenstOS, Solaris.

View Article
Browsing all 22296 articles
Browse latest View live


Latest Images

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