Does gcc define anything when -g is specified?
Shortly, I want to know if gcc (or g++. I need it in C, but also am curious about c++) defines any special symbols if -g is enabled. Does it? If so, what symbols?In the search process I found out...
View ArticleHow to runtime trace gcc/clang?
I want to trace all the user functions in gcc/clang when running something like gcc test.c.noted that I want to trace the functions in gcc or clang not that in test.cSome tools like strace and ltrace...
View ArticleHow to fix "cannot find -lvcruntime140.dll" while compiling .py to .pyd?
I am trying to convert my python module from .py to .pyd dll.Every time I tried to excute my setup script.from distutils.core import setup from distutils.extension import Extension from...
View ArticleMPI and libevent mixed code causes Segmentation fault on Ubuntu
I have a simple C program reproduces a recent problem I encountered./* filename: a.c */ #include <mpi.h> #include <evhttp.h> int main(int argc, char *argv[]) { MPI_Init(&argc,...
View ArticleGcc error: gcc: error trying to exec 'cc1': execvp: No such file or directory
I have been successfully using gcc on Linux Mint 12. Now I am getting an error. I have recently been doing some .so builds and installed Clang not to long ago, but have successfully compiled since both...
View Articletrouble linking INTEL tbb library
I read these threads:Getting Thread Building Blocks (Intel TBB) running on Linux with gccunable to link Intel TBB library with libtbb in /usr/libg++ can't find headers even when it's specifiedg++...
View ArticleWhat is the maximum bandwidth gcp instance can use with single network...
I am uploading data to Google cloud storage bucket using n processes parallelly, egress data rate is ~16Gbps. For only downloading data from gcp storage bucket using n processes parallelly, ingress...
View Articlegcc won't compile SDL C Program (undefined reference to SDL functions)
I recently moved to linux and i'm having an issue with compiling SDL C programs using gcc.The command i'm using:gcc `sdl-config --cflags --libs` -o main main.c Even by seperating sdl-config flags:gcc...
View Articlecreating va_list dynamically in GCC - can it be done?
my problem with vsprintf is that I can not obtain input arguments directly, I have to first get inputs one by one and save them in void**, then pass this void** to vsprintf(), it is all fine for...
View ArticleGCC SSE Handwritten vs. Generated
I am messing around with SIMD optimization and wrote a 3 very simple vector classes with addition implemented in 2 different ways, one handwritten component wise and one using _mm_add_ps...
View ArticleConditional Default Constructor compiles in GCC but not MSVC
I'm working on creating a template class where I have the following constraints:If the type of the class is generic, it should have normal constructorsIf the type of the class is NOT generic, it should...
View ArticleHow to force pip to use GCC on OSX?
A bit of an irritating problem with pip on OSX. A python program I am trying to install requires GCC. The suggested invocation is: env CC=/usr/local/bin/gcc-6 pip install angr However this results in...
View ArticleHow to run a function before constructors from global variables
I have a ncurses program in c++ with global variables, which one containing the WINDOW*.The problem is that I don't want to init every routines from ncurses in this constructor. I do want to init my...
View ArticleC++ expected declaration specifiers or ‘...’ before ‘(’ token & expected...
I'm trying to compile RetroArch in windows with gcc but at the compilation process there's an error:In file included from gfx/drivers/d3d10.c:39: gfx/drivers/../common/d3d10_common.h:1121:8: error:...
View Articleriscv-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 ArticleIf the file is executable, why do I need to install some dependencies?
I have a single 32bit executable binary file that I need to run on my x86_64 machine. If the file is executable (even dynamically linked), why do I need to install some dependencies related to the...
View ArticleHow to enable address sanitizer for multiple C++ binaries
I am working on a product that is composed of multiple C++ executables and libraries that have various dependencies on one another. I am building them all with GCC and -fsanitize-address. From what I...
View ArticleHow to run a linker script for GCC
I'm trying to run a simple linker script to understand how linking works and how i can implement function reordering with the linker scriptHere is my C codevoid A(){ printf("A\n"); } void B(){...
View ArticleInstallation of SciRuby failed on Mac OS X
I am trying to install SciRuby on Mac machine but the installation failed. I have searched this issue but didn't help much and the issued were related to a different error. when I used the commandgem...
View ArticleGCC - Unused Variable Warning inside Structs
I am searching for a solution where GCC (Arm-Embedded Version) is able to tell me if a variable is not existing at all, when allocated as part of a struct. The current examples do not warn at all,...
View Article