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

GCC on Mojave: The compiler cannot read the includes at -I /opt/X11/include/X11

Trying to compile with GCC on Mojave and am getting an error.gcc -g -ansi -c test_scroll_images_3x.c -I /opt/X11/include/X11test_scroll_images_3x.c:17:11: fatal error: 'X11/Xlib.h' file not found#...

View Article


Where to find the mathematics routines in GCC source. How the math functions...

Good night. I'm a Math bachelor and I'm studying log() and series. And I do want to see how GCC compute all those stuffs, it will help me a lot, there's nothing inside math.h I alread read it. I crazy...

View Article


Trouble including the 'X11/Xlib.h' header file within CMake [duplicate]

I am not able to get the X11/Xlib.h header file included properly with CMake on CLion. Below is the CMakeLists.txt file:cmake_minimum_required(VERSION 3.15)project(X11 C)set(CMAKE_C_STANDARD...

View Article

What does the linker option -rcu mean with GCC compiler? [closed]

What does the linker option -rcu mean with gcc compiler? I want to know the impact during the linking.

View Article

Configure kit for Qt automatically

SO!Let's say I have a number of settings (GCC compiler 9.3.0 built from source, as the distribution I have to use has a very old one, along with environment setup) for a new Kit in QtCreator.I have...

View Article


What are the exceptions for __always_inline and __never_inline in gcc?

Andrei Alexandrescu mentioned in a talk that he presented at cppcon that gcc doesnt always inline when then __always inline macro is defined and used, and vice-versa for __never_inline. I couldn't find...

View Article

QVector::contains fails with checks against constants

Environment as stated in the tags too:GCC 64bit, Qt 5.12I have the following example code:// test.h#include <QVector>class Test { Test(); // Same results with QSet const QVector<int> things...

View Article

Image may be NSFW.
Clik here to view.

My c++ program is compiling fine, but not running . My program is running and...

My c++ program is compiling with no error. I am running my program on vscode . In the same file, when i run this code.My system:Windows 10visual studio code c++ 14#include<bits/stdc++.h>using...

View Article


GitLab CI/CD Pipeline can't find GCC when building Debian package

TL;DR - Why can't this pipeline find gcc?In the following pipeline, the job is failing because it cannot find gcc in the PATH.This is using the official GCC docker image. I've also used this workflow...

View Article


Image may be NSFW.
Clik here to view.

extracting library to different path while using ar(1) command in makefile

I'm trying to compile some c codes with library. And I need to create library to different path before use it. My makefile is like:CFLAGS = -O3all: libexm.a derle OBJS = b.o c.o d.o e.olibexm.a:...

View Article

GCC error when installing GeoIP from macOS terminal [closed]

jruce's macbook pro:jruce$ pip install GeoIPDEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version...

View Article

C/C++ ISO compliant casting void ptr to multidimensional arrays

I have a function in C++ that looks like://ellipsis are irrelevant variables. Not variadiclint find_max(const void* ptr, ... , const vector<lint> &nums, ...){ const mm (*arr)[nums.size()] =...

View Article

Image may be NSFW.
Clik here to view.

Getting random command-line args when compiling and debugging in Visual...

So I'm making an example program to learn how to build and debug C projects in Visual Studio Code. For reference, here's my launch.json and tasks.json for the project: launch.json:"version":...

View Article


GCC last update on linux mint [migrated]

I updated my gcc on linux mint but when I checked it seems wasn't installed. What is the problem?joseph@joseph:~$ sudo apt install gcc-9Reading package lists... DoneBuilding dependency tree Reading...

View Article

Error compiling Linux kernel 2.6 on a new version of GCC

I downloaded Linux kernel 2.6.34 and I wanted to compile it with GCC v8.3.0 on Debian10. Initially, I had problems with PIE executables that I solved by adding -fno-pie to the Makefile's CFLAGS. I...

View Article


What are gcc compiler optimizations?

I could think of 3 cases, compiler could represent as a CSP and then optimize, however I don't know if it does. I don't assume a specific compiler optimization flag, however, to ensure optimization,...

View Article

Why libfoo.so works and libfoo.so.version doesnt?

I have a library which until now I compiled into objects of this form:libalx-module.soI didn't even know about soname and all that stuff, so I kept it simple. Everything worked.Now I moved to this...

View Article


pragma omp for simd does not generate vector instructions in GCC

Short: Does the pragma omp for simd OpenMP directive generate code that uses SIMD registers?Longer:As stated in the OpenMP documentation"The worksharing-loop SIMD construct specifies that the...

View Article

XCode compile: "undeclare use of cin" how do i fix it?

I've been using Xcode 10.0 on my mac and whenever I use cin, the compiler shows an error:|6|error: use of undeclared identifier cin|||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0...

View Article

GCC dependency generation; keep original targets directory structure for...

Basically, Im using the command g++ -MM Source/Somefolder/foo.cpp, this will obviously generate an output such as:foo.o: Source/Somefolder/foo.cpp Source/Somefolder/../base.h \ Source/Somefolder/foo2.h...

View Article
Browsing all 21994 articles
Browse latest View live


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