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

Removing Unused parameters warning in QtCreator

I added this to my .pro file but I stil get warnings : QMAKE_CXXFLAGS_WARN_OFF = -Wunused-parameter

View Article


Why does GCC generate a faster program than Clang in this recursive Fibonacci...

This is the code that I tested:#include <iostream> #include <chrono> using namespace std; #define CHRONO_NOW chrono::high_resolution_clock::now() #define CHRONO_DURATION(first,last)...

View Article


gcc warns about unused static functions, but not static inline: is there a...

My version (5.4) of gcc warns about unused static functions, even in a header file when -Wall is used. It doesn't complain if the same functions are defined static inline or simply inline.For example,...

View Article

How to install and run gupnp with gcc or g++

I am intended to work with gupnp which is a library for emulation of upnp device. I use ubuntu 16.04 and installed gupnp-tools package. But failed to run a program. For example when i try to run a c...

View Article

How can I make GCC allow my C program infinite recursioin as possible as...

//test.c #include <stdio.h> void f(long long i) { printf("%lld\n",i); fflush(stdout); f(i+1); } int main() { f(0); } I try gcc -fsplit-stack ./test.c but it even make lower recursion depth to 385...

View Article


undefined reference yaml-cpp

I'm on Manjaro Linux using gcc and codelite to compile my code. It's a project with sfml and yaml-cpp in C++.My GCC version is 4.9.2 (20150304)GCC compiler flags are -pg;-g;-O0;-O2;-Wall;-std=c++14My...

View Article

Issue with executing .exe written in C++ (using mingw compiler)

I am new to programming and trying to learn C++ using C++ Primer (5th ed.). I have written this code that is directly from the book. The issue is when trying to execute the .exe results with this...

View Article

Mac OS X R error "ld: warning: directory not found for option"

I am trying to install an R package from source, but getting an error:* installing *source* package ‘mclust’ ... ** package ‘mclust’ successfully unpacked and MD5 sums checked ** libs gfortran-4.8...

View Article


what does os_atomic_or2o actually do?

When I dive into source code of GCD (Grand Central Dispatch), I found some low-level C functions used in dispatch_block_cancel showed belowdispatch_block_cancel(dispatch_block_t db) {...

View Article


Possible problem of gcc with sleep_for and sleep_until functions

gcc seems to have a problem with sleep_for and sleep_until functions (of namespace std::this_thread). I do some simple example with future and conditional variables. gcc actually uses the System Clock...

View Article

Why do gcc and clang place custom-sectioned const-funcptr symbols into...

The program below demonstrates the issue:void f(void){} __attribute((section("mysect"),used)) void (* const fp)(void)=&f; //const fn ptr placed in a WR segment iff compiled with -fpic AND a custom...

View Article

CMake: Linking statically against libgcc and libstdc++ into a shared library

Problem:I am having difficulties linking glibcc/glibc++ into a shared library using CMake and GCC4.9 on my Ubuntu 16.04 installation.Additional conditions:Loading the shared library gives a problem om...

View Article

Unable to install various R packages probably after upgrading to Mac OS Catalina

Have been googling for days now.. Updated Xcode including command line tools as well, I've tried various SDKs, but unsuccessfully. Anyone out there who has found a solution yet? Any chance that the...

View Article


Read optimizations on shared memory

Suppose you have a function that make several read access to a shared variable whose access is atomic. All in running in the same process. Imagine them as threads of a process or as a sw running on...

View Article

in which senarios that just compile the source file but not link the object...

in what usage circumstance use "-c" option in gcc to only compile source files to object files but not link them? Could anybody share some usage scenarios?

View Article


Convert char to int in C and C++

How do I convert a char to an int in C and C++?

View Article

How to enable -fpermissive for a section of code

I have a C single-header library that I would like to use in my C++ project. Normally, I would just include the file and that would be fine because C++ is almost a superset of C. However, this library...

View Article


f2py: how to set gcc compiler options

I am using Python 2.7.17 and Numpy 1.16.5 to wrap a Fortran 77 code using f2py. Wrapping works well on several local machines but I get a segmentation fault at runtime on a remote server. I have...

View Article

Check that all symbols defined in static library

I built some static library with no errors. When I tried to link it to some app I realized that some symbols is undefined inside library.I want to get error on library building step not on app.In other...

View Article

gcc cannot find -lglfw3

I'm on a linux system (arch linux specifically) and I'm trying to compile the introduction project from the official glfw page but I cannot seem to get gcc to compile it. If anyone doesn't know what...

View Article
Browsing all 21994 articles
Browse latest View live


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