How do I get rid of the unused parameter warning in C with gcc 4.8.4...
This question already has an answer here:What does (void) 'variable name' do at the beginning of a C function? [duplicate] 2 answersUsing gcc 4.8.4 -Wall -Wextra -Wpedantic. I want to use argv for the...
View Articlewhich is the latest C cross compiler for u-boot2019 and linux kernel?
i want to compile u-boot2019,but it is for gcc6.0+.*** Your GCC is older than 6.0 and is not supported I can only search for"arm-none-linux-gnueabi-gcc" and "arm-linux-gnueabihf-gcc" for 2014.Thanks in...
View ArticleWhen do we need to use gcc/g++ to generate Map files? "-g" is enough for debug?
If we want to use gdb to debug a release version executable, we make sure we compile using -g and then use objcopy to trim the debug information. This debug information can be used to locate source...
View ArticleVariables scope level with GCC plugin
I am trying to write a simple GCC plugin that identifies all variables declarations (globals and locals) and their scope, I've gotten so far is to identify if only local/global.What I would like to do...
View ArticleGCC - how to issue a warning or error if a function gets defined
I have a DEBUG macro which either logs a debug message, or is a no-op, depending on whether another macro __DISABLE_LOGGING__ is defined. However, I still want to get compiler warnings and errors for...
View ArticlePthread and gcc compiling issue on OS X
I have a script that compiles fine on Linux (Ubuntu 11.04), but not on OS X (Lion).gcc -pthread -o hw1 hw1.c hw1.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘barr’ hw1.c: In...
View ArticleUse conda gcc in system
I always have this question. Suppose I have a conda environment (full, say 'xyz') with python2.7 and gcc 7.3. I could install many notorious packages, like CFITSIO, easily in the conda environment. But...
View Articlepip install regex Fails to build on Anaconda python3.6.9 virtualenv
I'm using anaconda 64bits on a manjaro distribution. I created a python3.6 enviroment using conda create -n tensorflow python=3.6 anaconda.I also installed pip install tensorflow-gpu==1.12 and conda...
View ArticleAlias attribute [closed]
I am reading the GCC manual for the alias attribute, and they mentioned that "This attribute requires assembler and object file support, and may not be available on all targets."I am quite lost in this...
View ArticleGdb isn't loading my source or allowing me to set break points anymore?
About a few hours ago I was able to use gdb -tui to visually see my commands running. I don't know what I did or what happened, but now whenever I use gcc -o filename -g filename.s it doesn't show the...
View ArticleBazel Build Permission denied
Hi everyone I'm very new to bazel.Recently, I'm trying to learn the NVidia Isaac which is build by bazel.While I was following the document...
View Articleconda install -c anaconda gcc_linux-64 not being used
I wanted to install updated version of gcc on a server where I do not have root access. I tried conda install -c creditx gcc-7 which was not working. Then I found conda install -c anaconda gcc_linux-64...
View ArticleBraced-init style constructor for protobuf conversion
I have some C++11 structs and classes that I'm trying to back or replace with protobufs. I have a struct that's initialized in a few places using the aggregate initialization style, like this:...
View ArticleDebugging a gcc plugin
I'm currently writing a plugin for gcc (9.2) and am looking for a way to debug said plugin. For this purpose I have built gcc using these instructions to enable debug symbols for gcc. I then try to...
View ArticleWhich codeblock compiler is needed to use Eigen C++?
Currently, I use mingw32-g++.exe (GNU GCC Compiler) for codeblock, with -std=C++14. The compiler was downloaded here: http://www.codeblocks.org/downloads/26However, all tutorial programs here fail to...
View ArticleFriend declaration of literal operator in class template
I'm trying to make a class that can only be constructed through a literal operator, but it fails to build on gcc.Here's a stripped down example:#include <cstddef> template<typename C> class...
View ArticleStack smashing detected with fgets() function in C [closed]
I got this code:while(!feof(fp)) { fgets(line,20,fp); puts(line); } fp is this file:prova1 prova2 prova3prova4 prova5 The fact is: if the count parameter of the fgets function it's a lower number than...
View ArticleHow do I compile using minilibx?
I'm working on an exercice at school (Mac OSX), and would like to continue at home (Ubuntu 16.04). To do this project I need to use a library : Minilibx (https://github.com/ttshivhula/minilibx) I met a...
View ArticleCompiling Python 3 extension module on Mac
I'm trying to write a Python extension module in C. I'm running macOS Catalina and have a Homebrew installation of Python 3 (with default installation settings). When I try to compile the following...
View ArticleReducing compile resources using GSL for an ODE system
I'm using C++ and GSL (Gnu Scientific Library) to integrate a large ODE system with 4503 equations. As the system is stiff, I need to setup a Jacobian for the integration and the resulting matrix has...
View Article