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

Problem when compiling in Dev-Cpp 4.9.9.2

I've been trying to compile this project for several days, but I always get a bug here which I shouldn't because I've compiled it before and didn't make any changes.I'd like to know if someone could...

View Article


No such file or directory while compliling in gcc [closed]

I have tried everything ,watched videos and read but still i am not able to setup compiler properly Image 1-https://i.stack.imgur.com/BpPC2.jpg Image 2- https://i.stack.imgur.com/YsaAU.jpg Please see...

View Article


Silence only pragma messages containing a specific string in gcc

I have a special macro for pragma messages that is defined as shown below:#ifdef IGNORE_MESSAGES # define MY_MESSAGE(x) #else # ifdef KD_UNIX # if CHECK_GCC_VERSION(4, 4) # define DO_PRAGMA(x) _Pragma...

View Article

Controlling File Offset in linking

I have some assembler for the Microblaze that I want to load at address 0x00000000 (ie to ensure it is executed on a reset).I have a linker script that should do this (I think):SECTIONS { ENTRY(_start)...

View Article

Issue after GCC upgrade C++

Current Code Base Os-Linux x64, have perl code, boost 1.42, GCC 4.4.7 and other dependencies as a part of project code. The build works fine.After Upgrade of GCC to 4.9.2 We made a copy of existing...

View Article


Why does GCC load into different registers when compiling with no...

I have this line: int a = s - b * c; s, b and c are variables. And it generates the following code mov eax, DWORD PTR [rbp-12] imul eax, DWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-4] sub edx, eax mov...

View Article

How to install Pygame on MacMojave?

I'm trying to install Pygame, but this doesn't work.. I'm on Mac, using MacOs Mojave, and SublimeText. I tried python3.8 -m pip install Pygame and python3 -m pip install -U pygame in the terminal,...

View Article

Error with long doubles on PowerPC when compiling with gcc

I'm running into a curious bug when I assign values to long double variable types. (PowerPC architecture, gcc v4.9.2)Specifically:const constexpr long double DEGREE_TO_RAD =...

View Article


Are compile time checks possible for value parameters in C99 or GCC/Clang?

I have a function that takes a length value that must be no greater than 32,768. I want to check this condition at compile time because in an embedded system there is no good way to handle this fault....

View Article


What causes gcc invalid option for mtune?

I use ODB Library in my programm. By compiling I get the following message:[ 1%] Generating ../odb_gen/XXX_odb.cpp cc1plus: error: bad value (ā€˜/dev/null’) for ā€˜-mtune=’ switch cc1plus: error: bad value...

View Article

Early-clobbers and named registers

I'm trying to understand the usage of "early-clobber outputs" but I stumbled upon a snipped which confuses me. Consider the following multiply-modulo function:static inline uint64_t mulmod64(uint64_t...

View Article

Compile a C file with glib dependencies

I'm trying to compile a C file with GCC. This file has the following dependencies:#include <glib-object.h> #include <thrift/c_glib/thrift.h> #include...

View Article

gcc compiler gives an error message but codeBlocks compiles fine [duplicate]

printf("sizeof(int) = %d \n ", sizeof(int)); Here is the error message I get when I use this command in linux mint gcc fileName.c -o fileName.exe precedence.c:13:12: warning: format ā€˜%d’ expects...

View Article


How may I override the compiler (gcc) flags that setup.py uses by default?

I understand that setup.py uses the same CFLAGS that were used to build python. I have a single C extension of ours that is segfaulting. I need to build it without-O2 because -O2 is optimizing out some...

View Article

Clang linking problems

I'm trying to run clang(clang-tidy) on my cpp files. And I get errors like: main.cpp:1:10: fatal error: 'iostream' file not foundI searched problem in the Internet, but couldn't find solution....

View Article


CMake ignores gcc (CMAKE_CC_COMPILER) and then does not compile with c++11

I have a mixed c++ and c project I have set up to build on my Mac with cmake. However when I try to go on my box (it is a shared linux machine) I am unable to get it to build. Here is the CMakeLists...

View Article

What exactly does `-rdynamic` do and when exactly is it needed?

What exactly does -rdynamic (or --export-dynamic at the linker level) do and how does it relate to symbol visibility as defined by the -fvisibility* flags or visibility pragmas and __attribute__s?For...

View Article


D_FORTIFY_SOURCE and gcc

This function is for generating md5hash:out = malloc(32+1); void md5sum( u_char *secret_data, int secret_len, char *in,char *out ) { ngx_md5_t md5; u_char hash[16]; ngx_md5_init(&md5);...

View Article

Static assert in C

What's the best way to achieve compile time static asserts in C (not C++), with particular emphasis on GCC?

View Article

Compiling "binica" with Intel MKL BLAS LAPACK on Ubuntu 16.04

for a specific data analysis, I use the pre-compiled ica_linux binary from this repository. In the README.md of that repository, the authors state that you can achieve a major speedup when compiling...

View Article
Browsing all 22058 articles
Browse latest View live


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