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

CUDA incompatible with my gcc version

I have troubles compiling some of the examples shipped with CUDA SDK.I have installed the developers driver (version 270.41.19) and the CUDA toolkit,then finally the SDK (both the 4.0.17...

View Article


Program exited with code: 5 - Geany with gcc

my issue: when I compile and build my program in C (using gcc compiler and geany as editor), no problem, fil object and executable are fine. But when I try to execute from Geany or manually from Prompt...

View Article


How to remove "noise" from GCC/clang assembly output?

I want to inspect the assembly output of applying boost::variant in my code in order to see which intermediate calls are optimized away.When I compile the following example (with GCC 5.3 using g++ -O3...

View Article

Annotate variables with custom debug information with GCC/Clang?

Say, I am writing my own debugger. Since this debugger will only be used to debug some specific applications, I want it to understand the program semantics better than a generic debugger can. In order...

View Article

'g++' is not recognized as an internal or external command, operable program...

I am trying to set up the VScode with C++ Compiler By following this tutorial enter link description hereand the problem I got is (By running the code with code runner)'g++' is not recognized as an...

View Article


a.exe: file not recognized: File truncated [closed]

It was working perfectly for others c file but in this file it fail to run . Please do explain , as i am new to Programming world. C:\Desktop\C Basic\recursiveFunction> gcc .\pratice.c PS...

View Article

Why do assembly need repeated operation of movzx on eax?

Code - Difference is one method is for signed short int-s and another for unsigned short int.short signedShortIntSwap(short int* a , short int* b){ short tmp = *a; *a = *b; *b = tmp; return...

View Article

How to modify the include path for C++?

I am trying to use the arrow C++ library. So I justgit clone https://github.com/apache/arrow.gitand then I navigate to the cpp/src/ folder. Then I create a file called main.cpp with he following...

View Article


How to include headers from another directory (but not knowing which)

I am trying to compile module. I can do so by calling make, which callsmake -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modulesBut I want to see preprocessed output, So I am trying to compile...

View Article


How to include a C++ library after I `make` it?

I followed the instructions to build arrow which isgit clone https://github.com/apache/arrow.gitcd arrow/cppmkdir releasecd releasecmake ..makeso now I want to make use of the libraries I have...

View Article

Using GCC10 with Qt on KDE Neon 18

I would like to play around with some very new C++20 features. Some of them are supported by GCC10 only. Unfortunately the most current release is GCC9.3 so I need to use the unreleased version of...

View Article

ELF file generated in armv7, .o files in armv6, while using -march=armv6, why?

I'm trying to compile my program to armv6, but the ELF file is built for armv7, even when I use -march=armv6 option. All .o files has been compiled to armv6, only the ELF file is wrong.Basically I'm...

View Article

Cross compilation GLIBCXX version link error

I'm configuring a project for a raspberry and i'm facing a linking error that i don't understand.Context:Actually, i cross-compiled Qt and everything worked fines.Now, i'm trying to get opencv working...

View Article


How do we install gcc-go to AIX machine power-pc-7 bigendian 64 bit?

I have a AIX machine which runs on power-pc-7 bigendian 64 bit I understand installing Go compiler is easy for Windows,Linux and Mac but if we want to install it on AIX then it involves different...

View Article

How do I compile a C program which includes Python.h on Windows?

I am trying to learn how to embed a Python interpreter into my C/C++ programs.I like this concept because it may enable me to extend C programs at run time as well as enable users to write custom...

View Article


interprocedural analysis

Does gcc (C, C++ and Fortran compilers in particular) support interprocedural analysis to improve performance?If yes, which are the relevant flags?http://gcc.gnu.org/wiki/InterProcedural says the gcc...

View Article

Error while running c code in terminal, though compiler has been installed...

I have installed command line tools using xcode-select --install in macOS Catalina.I checked manually no header file is missing. Also i tried installing gcc using homebrew but whenever i tried running...

View Article


Error when configuring GCC compiler in Eclipse

We have our own GCC based compiler. We use eclipse in order to develop .c files using our compiler – after hitting the build button eclipse manages to run our ‘make’ file and the build operation...

View Article

Wrong compiler used in the target offload process in CLion during CUDA...

I'm trying to configure a very simple CUDA project in CLion 2020.1.I'm on Fedora 31 (default gcc is 9.3), but compiled gcc 8.2 from source to use it with Cuda Toolkit 10.2.The Cuda samples compile and...

View Article

unable to execute 'x86_64-conda_cos6-linux-gnu-gcc': No such file or...

I am trying to install pysam. After excecuting: python path/to/pysam-master/setup.py buildThis error is produced:unable to execute 'x86_64-conda_cos6-linux-gnu-gcc': No such file or directoryerror:...

View Article
Browsing all 21993 articles
Browse latest View live


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