Top "Gcc" questions

GCC is the GNU Compiler Collection.

How to compile a 32-bit binary on a 64-bit linux machine with gcc/cmake

Is it possible to compile a project in 32-bit with cmake and gcc on a 64-bit system? It probably is, …

linux gcc 64-bit cmake 32-bit
Converting a pointer into an integer

I am trying to adapt an existing code to a 64 bit machine. The main problem is that in one function, …

c++ gcc casting 64-bit 32-bit
error: ‘NULL’ was not declared in this scope

I get this message when compiling C++ on gcc 4.3 error: ‘NULL’ was not declared in this scope It appears and …

c++ gcc pointers null
Static link of shared library function in gcc

How can I link a shared library function statically in gcc?

linux gcc
"/usr/bin/ld: cannot find -lz"

I am trying to compile Android source code under Ubuntu 10.04. I get an error saying, /usr/bin/ld: cannot find …

linux gcc linker
Compiler error: memset was not declared in this scope

I am trying to compile my C program in Ubuntu 9.10 (gcc 4.4.1). I am getting this error: Rect.cpp:344: error: ‘memset’ …

c++ gcc
Printf long long int in C with GCC?

How do I printf long long int and also unsigned long long int in C99 using GCC? I have searched …

c gcc printf c99
What is the meaning of "__attribute__((packed, aligned(4))) "

It is C language.It is written that: typedef struct __attribute__((packed, aligned(4))) Ball { float2 delta; float2 position; //float3 color; …

c gcc
static linking only some libraries

How can I statically link only a some specific libraries to my binary when linking with GCC? gcc ... -static ... tries …

gcc linker static-libraries
How to include static library in makefile

I have the following makefile CXXFILES = pthreads.cpp CXXFLAGS = -O3 -o prog -rdynamic -D_GNU_SOURCE -L./libmine LIBS = -lpthread …

c linux gcc x86-64