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

How to run different codes when different keys are pressed in C on ubuntu...

This question already has an answer here:How to implement getch() function of C in Linux? 10 answersI am trying to execute different code pieces when some special keyboard keys are pressed in a Console...

View Article


Converting file to csv fails the 2nd time, but works the 1st

I saw many questions related to "segmentation fault on fgets", and I read a few of them, but none describe my problem.I am trying to read a csv and convert it into a matrix, which all works fine. But...

View Article


Why GCC -Ofast makes the program wrong but only when it prints the result twice?

Recompiling an old program made it output the wrong result. I'd like to know why.I know that -Ofast may "disregard strict standards compliance" but I'm curious about what happens under the hood.I...

View Article

Why does address sanitizer overlook seg faults sometimes?

Been using fsanitize=address while compiling C programs, in order to track seg faults for about a year now. Every now and then I encounter a strange behavior, my program would be seg faulting if...

View Article

Troubles installing MetaTrader5 - command 'gcc' failed with exit status 1

I'm trying to install MetaTrader5 using pip3 install MetaTrader5 and the following error keeps occurring. 1 error generated..error: command 'gcc' failed with exit status 1ERROR: Command errored out...

View Article


what the difference in __cyg_profile_function_enter between gcc and g++?

I know little about __attribute__ and __cyg_profile_function_enter. Of course, they are both GNU C features.I'm learning C++ to compile Nginx modules. I always try to convert the C code samples to C++....

View Article

Unable to install GCC using anaconda

This is output of the command conda install gcc: Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - gcc-6

View Article

Why can't I run a C program built on alpine on ubuntu?

I compiled a simple hello world C program inside of an alpine linux container and copied it onto my ubuntu host. To my surprise, I am not able to run the binary on my ubuntu host. Instead, I get the...

View Article


Where in the GCC source code does it compile to the different assembly...

Where is the code in the GCC source code that actually constructs the assembly for the different architectures?Wondering how many different assembly languages it compiles to, and how it actually does...

View Article


Can't compile a C program on a Mac after upgrading to Catalina 10.15

There's a previous question Can't compile C program on a Mac after upgrade to Mojave, and the answers to that have covered most of the variations on what goes wrong.Now — as of Monday 2019-10-07 — you...

View Article

Generating dependencies for gcc

I'm writing a Makefile to compile a very long project. Basicaly, I've defined the all objects I need. The problem comes when I need to generate the dependencies. I'm doing something like this:a.o: $(...

View Article

c++ template weird optimization

I wrote a singleton template class just like boost does:template <typename _T> class Singleton { public : static _T* Instance() { static _T obj; return &obj; } protected : Singleton() {}...

View Article

Why do I get "does not name a type" when I access an `extern` defined variable

I have a .h file which contains class definition and an extern definition of a static variable The accompanying .cpp file declares and initializes this variable.But when I try you access this variable...

View Article


riscv-gcc Fails to build [GCC_NO_EXECUTABLES]

I want to use riscv-gcc to implement an Ibex (RISCV core) example on an Arty-A7 but I haven't been able to build it properly. It's been failing after the 'make' phase. It seems to have something to do...

View Article

GCC Warning forming offset [X1, X2] is out of the bounds [0, X3]

I have the following code to copy one raw (not null terminated) string into const-size char array, but when I compile I get a warning. Could please someone help me to understand what's wrong with this...

View Article


W10 + Cygwin + gccV9.2 >>>-----> strtoflt128

I compiled and installed gccV9.2 on cygwin and am now getting an error with a simple program that previously compiled and ran without issue. $ make...

View Article

Upgrading energia under code composer with newer version of msp430-gcc?

I'm using the energia framework because of an internal requirement. I use code composer studio to code and do the day to day programming. I would like to use some basic C++11 functionality (such as...

View Article


"CMAKE_CXX_COMPILER broken" while compiling with CMake

I'm trying to compile a Git project, and I'm facing some problems with CMake. Initially, it didn't find the C++ compiler and prompted an error:cmake .. No CMAKE_CXX_COMPILER could be found.Tell CMake...

View Article

What is the motivation to explicitly set the "falign-functions" compiler flag...

I am working on the SW for an embedded system and trying to understand some low-level details that was setup by an earlier developer. The target platform is a custom made OpenRISC 1200 processor,...

View Article

Can't compile xorg-server on Amazon Linux 2

I am trying to compile xorg-server on Amazon Linux 2. I am following this article: https://gist.github.com/cpsubrian/3aa40f6f3d6ce2c707b9d8e34c652dcfBut on step make of:$ ./configure $ make I am...

View Article
Browsing all 22016 articles
Browse latest View live


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