Top "Gcc" questions

GCC is the GNU Compiler Collection.

gcc: undefined reference to

I would like to compile this. program.c #include <libavcodec/avcodec.h> int main(){ int i = avpicture_get_…

c++ c gcc linker undefined-reference
gcc-arm-linux-gnueabi command not found

I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when …

linux ubuntu gcc arm gnu
How to compile C program on command line using MinGW?

What command does one have to enter at the command line in Windows 7 to compile a basic C program? Like …

c windows gcc command-line mingw
Compilation fails with "relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object"

I'm trying to compile this source code from the makefile in a VPS, but its not working. The VPS is …

c++ linux gcc linker shared-libraries
How do the likely/unlikely macros in the Linux kernel work and what is their benefit?

I've been digging through some parts of the Linux kernel, and found calls like this: if (unlikely(fd < 0)) { /* Do …

linux gcc linux-kernel likely-unlikely
function declaration isn't a prototype

I have a library I created, mylib.c: #include <mylib.h> int testlib() { printf("Hello world\n"); return (0); } …

c gcc
CFLAGS, CCFLAGS, CXXFLAGS - what exactly do these variables control?

I am using GNU make to compile my C++ code, and i would like to understand how to make my …

gcc naming-conventions makefile
GCC: Array type has incomplete element type

I have declared a struct, and I try to pass an array of those structs (as well as a double …

arrays c gcc multidimensional-array incomplete-type
CreateProcess: No such file or directory

I am getting this error whenever I try to run GCC outside of its installation directory (E:\MinGW\bin). So, …

c gcc mingw
How to include header files in GCC search path?

I have the following code in a sample file: #include "SkCanvas.h" #include "SkDevice.h" #include "SkGLCanvas.h" #include "SkGraphics.…

c++ gcc header