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

Problem in debugging templates. Build fails specifically for Linux GCC 7, GCC...

My Travis is only failing for Linux GCC 7, GCC 6, GCC 5, GCC 4.9 with errorlibs/astronomy/test/coordinate/equatorial_coord.cpp:22:57: error: template argument 1 is invalid RightAscension<double,...

View Article


Permanently and reliably set gcc include path globally

System: LMDE4, 64bit, gcc-8.3.0, VS CodeTarget File: https://github.com/opencv/opencv/blob/master/samples/cpp/videocapture_camera.cppNow as the title says, this starts pissing me off. Nothing is...

View Article


How to stop 'noreturn' functions disabling '-Wreturn-type' warning with GCC?

When using a macro that might expand to a function with a noreturn attribute, is there a way to stop it from suppressing -Wreturn-type?Simple example:/* Defined in a separate header. */#ifndef NDEBUG#...

View Article

Need a simple Linux C++ IDE (Android NDK)

I need an IDE that must:allow running the ~/android-ndk-r7/ndk-build script forcompilation;intercept the gcc output and show it to me;when I click on an error line, go to error location: open the...

View Article

Image may be NSFW.
Clik here to view.

Weird signal handler behavior when invoking mremap(2)

Firstly, here is the code#define _GNU_SOURCE#include <sys/types.h>#include <sys/stat.h>#include <sys/mman.h> /* mmap() is defined in this header */#include <fcntl.h>#include...

View Article


TreeMix compilation issues

I am having issues compiling TreeMix on my system. configure: error: cannot run C++ compiled programs. If you meant to cross compile, use '--host'. See 'config.log' for more detailsOperating system is...

View Article

How do you get assembler output from C/C++ source in gcc?

How does one do this?If I want to analyze how something is getting compiled, how would I get the emitted assembly code?

View Article

setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with...

When I try to install odoo-server, I got the following error: error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1Could anyone help me to solve this issue?

View Article


GCC segprot on MacOS Catalina

I want to create a binary on MacOS Catalina (64 bit) with a data segment that can be made executable (see here for details) but is not executable from the start.I make my binary with gcc -nostdlib...

View Article


Install gcc and build-essential offline rhel

I am trying to install GCC in a rhel 7 serverBut I'm getting this error.# sudo rpm -ivh gcc-4.8.5-39.el7.x86_64.rpmerror: Failed dependencies:     cpp = 4.8.5-39.el7 is needed by...

View Article

Which Clang/GCC linker flag should be used to produce offsets in code that...

I'm trying to link my code with an external static library, that has this piece of code in the binary:0000000000000000 <some_method>: 0: 48 8d 05 00 00 00 00 lea 0x0(%rip),%rax # 7...

View Article

Is there any solution of the error of sorting user input array using STL?

My code is:#include<bits/stdc++.h>#include<stdio.h>using namespace std;struct Interval{ int init,last;};bool compare(Interval a,Interval b){ return (a.init < b.init);}int main(){ int...

View Article

How to disable the warning about using deprecated gets in GCC?

I'm running a CTF and I am currently writing a problem that exploits C's gets function. I understand that the function is deprecated and dangerous and I would never use it in any other circumstance....

View Article


Why is the result type of a sum of two unsigned integers different in Clang...

I am writing some low level code for my emulator which involves a lot of 16 and 8 bit unsigned integers. I enabled -Wconversion warning in my project and all warnings are considered as errors...

View Article

C++ Concepts - Concept in the requires parenthesis causes 2 conflicting error...

I've worked hard this morning to understand concepts a bit more (still a newbie), and I've stumbled to something strange.I wanted to understand how good concepts work with Lambda functions, I've tried...

View Article


How to specify new GCC path for CMake

My OS is centos which has a default gcc in path /usr/bin/gcc. But it is old, I need a new version of gcc. So I install a new version in a new path /usr/local/bin/gcc.But when I run cmake, it still uses...

View Article

how to produce static executable on NixOS

today i met really interesting problem with my NixOS distro. i just wanted to create statically compiled ocaml progam and couldnt do that. then i tried to do that with ansi C canonical toy test "hello...

View Article


How to pass comma-separated options to the g++ linker with VSCode?

I need to pass the arg -Wl,-Bstatic,--whole-archive to g++. "version": "2.0.0","tasks": [ {"type": "shell","label": "shell: g++.exe build active file","command": "C:\\MinGW\\x86\\bin\\g++.exe","args":...

View Article

Getting "DSO missing from command line" with custom glibc

I am trying to link a program with a custom GLIBC installation. I have tried the following options, but got the same errorobjs/ngx_modules.o \-Wl,--emit-relocs...

View Article

Build commands needed to run Wine programs from IDE

I’ve recently done a git clone of the wine repository at https://github.com/wine-mirror/wine and downloaded the folders to (~/repo/wine/). I'm trying to run Notepad, but don't know how. I am assuming...

View Article
Browsing all 22056 articles
Browse latest View live


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