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

Problems while installing HTSeqGenie and gmapR packages in R

Whenever I try to install HTSeqGenie for using the markduplicate function in R, I failed to compile gmapR (Rtools installed, version 35), error message shown below:if (!requireNamespace("BiocManager",...

View Article


Gcc compiler runs infinitely compiling Hello World program

I installed gcc compiler using msys2 tool and I can't compile even silmple hello world program. After I execute simple command gcc runs infinitely:$ gcc a.c I can access --help and --version normally....

View Article


undefined reference for static constexpr on g++ 4.9 with no optimisation

I have the following code:#include<chrono> #include<iostream> using namespace std::chrono_literals; #define MSG "hello" #define DUR 1000ms class mwe{ public: static constexpr auto msg =...

View Article

Invalid character '\' in mnemonic

I'm asm/shellcode newbie and I have trouble with compile example shellcode included as template in ParrotOS.I looked through following topics, but It couldn't solve my problem:Assembly error: invalid...

View Article

nvcc error compiling ld error undefined reference to symbol 'XConvertSelection'

I am trying to compile nvcc that works on other machines and clusters, now that im running x86-64 machine I was getting errors for relocation R_X86_64_32 against ... diffrent lib files and errors....

View Article


Overload resolution fails for gcc and c++17

The code below fails to compile with gcc (9.2) and c++17. It does work with clang and MSVC, it also worked up to c++14. What's going on, who is right and is there an easy workaround? Resorted to...

View Article

int16_t not the same size of two chars? [duplicate]

Here is the hexdump for the beginning of a file I am reading:00000000 47 52 49 42 00 00 00 02 00 00 00 00 00 00 3d 0e |GRIB..........=.| 00000010 00 00 00 15 01 00 07 00 00 02 01 01 07 e4 02 12...

View Article

Including all the library statically instead of parts of the library upon...

If I am to statically link a certain library to my application, As far as I know, the linker could optimize in a way to put only the parts that had been used from the library while generating the final...

View Article


Disabling the "did you mean..." suggestions in GCC

Newer versions of GCC come with what I consider to be an irritating misfeature: they try to second-guess me, emitting useless "did you mean?" suggestions that drown out other warnings.For example:$ gcc...

View Article


Query on using -ffunction-sections to solve linking error using GCC-8 on AIX...

While compiling my basecode on gcc-8.x in getting a sequence of errors from the linker like bellow:ld: 0711-302 ERROR: Object SomeLibrary.a[SomeObject.o], csect <.text> The csect is part of the...

View Article

gcc cross compilation for powerpc7448

I want to cross compile the gcc for powerpc7448, and after this I want to run one simple program and get the elf from the cross compiled gcc for powerpc7448,I am using the linux OS,could anyone please...

View Article

Is there a gfortran equivalent to gcc's __attribute__((section("name")))?

I am using the nestedvm package, which includes a patched Gnu gcc compiler. For this package, callable user methods/functions have to annotated with __attribute__((section(".text"))), as shown in the C...

View Article

How to build older version of glibc?

I am building gcc-8.1.0 cross-compiler for arm, for Ubuntu Xenial 16.04. That package exists as a debian package but only for Ubuntu 18.04 bionic which is why I am building it. But there is a problem -...

View Article


GCC Linker errors with macOS Catalina (10.15)

I've been updated to from Sierra to Catalina (bad idea but I didn't know ...) and for almost every compilations, I've been had the following errors (the following is taken from libimobiledevice but I...

View Article

Eclipse + MinGW: After installing another version of MinGW make still uses...

I'm trying to build a CPP project with make in Eclipse. I had installed some version of MinGW in C:\MinGW\. Consequently my system Path variable contained C:\MinGW\bin and MinGW_Home had that as value....

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

How to successfully build jctvc part in libbpg on Linux with mingw-w64 for...

I know that I need zlib, libpng, libjpeg-turbo and yasm.I've successfully built them and correctly installed (hope so), because when I try to "make" libbpg with following config in Makefile:# Enable...

View Article


Is std::string ref-counted in GCC 4.x / C++11?

Is std::string reference-counted when using gcc 4 with -std=c++0x or -std=c++11?

View Article

Different compiler behaviors for uninitialized data on the stack

I have the following program to test the outcome of uninitialized pointers by different compilers#include<stdio.h> #include<stdlib.h> typedef struct intNode { int intval; struct intNode*...

View Article

Image may be NSFW.
Clik here to view.

gcc-10.0.1 Specific Segfault

I have an R package with C compiled code that's been relatively stable for quite a while and is frequently tested against a broad variety of platforms and compilers (windows/osx/debian/fedora...

View Article
Browsing all 21993 articles
Browse latest View live


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