Top "Gcc" questions

GCC is the GNU Compiler Collection.

How exactly does __attribute__((constructor)) work?

It seems pretty clear that it is supposed to set things up. When exactly does it run? Why are there …

c++ objective-c c gcc
Linker error: "linker input file unused because linking not done", undefined reference to a function in that file

I'm having trouble with the linking of my files. Basically, my program consists of: The main program, gen1. gen1 - …

c++ c gcc makefile linker-errors
How do I compile the asm generated by GCC?

I'm playing around with some asm code, and something is bothering me. I compile this: #include <stdio.h> …

c gcc compiler-construction assembly
Is gcc's __attribute__((packed)) / #pragma pack unsafe?

In C, the compiler will lay out members of a struct in the order in which they're declared, with possible …

c gcc pragma-pack
Compile error: "g++: error trying to exec 'cc1plus': execvp: No such file or directory"

When I compile C/C++ program with popen in php... I got this error: g++: error trying to exec 'cc1…

php c++ c linux gcc
Why do I get a C malloc assertion failure?

I am implementing a divide and conquer polynomial algorithm so I can benchmark it against an OpenCL implementation, but I …

c gcc malloc assertion
How to specify non-default shared-library path in GCC Linux? Getting "error while loading shared libraries" when running

There is a laptop on which I have no root privilege. onto the machine I have a library installed using …

gcc linker shared-libraries
Debugging the error "gcc: error: x86_64-linux-gnu-gcc: No such file or directory"

I'm trying to build: https://github.com/kanzure/nanoengineer But it looks like it errors out on: gcc -DHAVE_CONFIG_…

python gcc makefile autotools
GCC dump preprocessor defines

Is there a way for gcc/g++ to dump its preprocessor defines from the command line? I mean things like __…

gcc g++ c-preprocessor
typeof operator in C

Is typeof in C, really an operator? I'm thinking because there is no polymorphism in C, that there is nothing …

c gcc typeof