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

Is there a way to specify the address at which some assembly code should be...

I'm currently working on some baremetal code for the Raspberry Pi, and I'm attempting to place the interrupt vector table--implemented in gnu assembly--at address 0. I previously wrote the table in C...

View Article


Meaningful stack traces for address sanitizer in GCC

I just tried compiling with GCC and the -fsanitize=address flag. When I run my program, the address sanitizer finds a flaw, but the stack trace is not helpful. How can I configure this so that it...

View Article


How can I make Conda find cc1plus?

When I am compiling a package on Ubuntu, I am getting this errorx86_64-conda_cos6-linux-gnu-cc: error trying to exec 'cc1plus': execvp: No such file or directoryAll my necessary libraries are in a...

View Article

Private member access in template substitution and SFINAE

class A { int a; }; template<typename, typename = void> class test {}; template<typename T> class test<T,decltype(T::a)> {}; int main() { test<A> a; } The code above compiles...

View Article

How to suppress "unused parameter" warnings in C?

For instance:Bool NullFunc(const struct timespec *when, const char *who) { return TRUE; } In C++ I was able to put a /*...*/ comment around the parameters. But not in C of course, where it gives me the...

View Article


Why does makefile not recognize defined library in C?

I have a program in C that is compiled with gcc from a Makefile. The makefile code:CC=gcc CFLAGS=-c -g -Wall -std=gnu99 LDFLAGS=#-pthread SOURCES=ficheros_basico.c bloques.c mi_mkfs.c leer_SF.c #todos...

View Article

gcc -fstack-limit-(symbol|register) what is "signal is raised at run time"

DocsGenerate code to ensure that the stack does not grow beyond a certain value, either the value of a register or the address of a symbol. If a larger stack is required, a signal is raised at run...

View Article

Compiler option make error warning after -Wall -Werror

-Wall -Werror are already set. I need to add some flag to make unused-s not error but warning. -Wno-unused discards warnings at all. I want to see warning and succeed compilation. How?I tried:...

View Article


Get USB Mass Storage Devices with Addresses in C++ on Linux with Codeblocks

I am new to the whole linux and c/c++ development world and I'm trying to port one of my windows programs to Linux. I am stuck at figuring out how to get USB Devices like memory sticks, external hard...

View Article


The proper way of forcing a 32-bit compile using CMake

Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, conflicting CMake commands and so on!I need to force my...

View Article

Can nullptr be converted to uintptr_t? Different compilers disagree

Consider this program:#include <cstdint> using my_time_t = uintptr_t; int main() { const my_time_t t = my_time_t(nullptr); } It failed to compile with msvc v19.24:<source>(5): error C2440:...

View Article

fatal error: Python.h: No such file or directory, python-Levenshtein install

I've spend an entire day googling a fix for this problem but I'm not getting anywhere. Hoping someone can help me.Firstly, I'm working on an Amazon EC2 instance, Amazon linux version 2 AMI using Python...

View Article

Trying to install Parallel IO on Unix, getting Error: Can't open included...

http://www.cesm.ucar.edu/models/pio/install.html Instructions linked hereI am on item 3. and when I run gmake this is my output>gmake[1]: *** [pio_kinds.o] Error 1 gmake[1]: Leaving directory...

View Article


Getting a segmentation fault when trying to build my GCC backend

I am currently trying to write a GCC backend for a new architecture, but when I try to compile it I get the following error message:xgcc: internal compiler error: Segmentation fault signal terminated...

View Article

What is the difference between g++ and gcc?

What is the difference between g++ and gcc? Which one of them should be used for general c++ development?

View Article


Does the use of locks in a thread slow down other threads that don't use locks?

If I have a thread that frequently uses locks, will it slow down other threads that don't use locks (e.g., because of global lock behavior in the CPU etc).

View Article

C++ IntelliSense in Visual Studio Code doesnt recognize C++ STL

I'm using Visual Studio Code on my Linux laptop. I just wrote a simple program like this one in main.cpp:#include<iostream> int main() { } Yesterday everything was working just fine. Today I open...

View Article


How to properly avoid warning about sh_link not set for section ".ARM.exidx"?

If in my linker script I have this:.ARM.exidx : { . = ALIGN(4); PROVIDE(__exidx_start = .); *(.ARM.exidx* .gnu.linkonce.armexidx.*); . = ALIGN(4); PROVIDE(__exidx_end = .); } > rom AT > rom I get...

View Article

Compound literals in MSVC

In GCC, I'm able to do this:(CachedPath){ino} inode->data = (struct Data)DATA_INIT; where:struct CachedPath { Ino ino; }; typedef int8_t Depth; struct Data { Offset size; Blkno root; Depth depth; };...

View Article

How do I install imagemagick with homebrew?

I'm trying to install Imagemagick on OSX Lion but something is not working as expected.-> brew install imagemagick /usr/local/git/bin/git ==> Cloning https://github.com/adamv/ImageMagick.git...

View Article
Browsing all 22009 articles
Browse latest View live


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