“/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 -...

How to solve static declaration follows non-static declaration in GCC C code??

I'm trying to compile the same C file on two different machines with different versions of cc. gcc version 3.2.3 sa...

“/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 -...

What is makeinfo, and how do I get it??

I'm trying to build GNU grep, and when I run make, I get: [snip] /bin/bash: line 9: makeinfo: command not found W...

gcc error : undefined reference to `itoa'?

if I include stdlib.h then also itoa() is not recognized. My code : %{ #include "stdlib.h" #include <stdio.h&gt...

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: ‘m...

function declaration isn't a prototype?

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

error: unknown type name ‘bool’?

I downloaded the source code and wanted to compile the file of scanner. It produces this error: [meepo@localhost c...

warning: incompatible implicit declaration of built-in function ‘xyz’?

I'm getting a number of these warnings when compiling a few binaries: warning: incompatible implicit declaration o...

error: use of deleted function?

I've been working on some C++ code that a friend has written and I get the following error that I have never seen be...

What is the difference between gcc -ggdb and gcc -g?

When I use gcc to compile C programs I usually use -g to get some debug information into the elf file so that gdb c...

Why are unused variables bad??

I would like to know why an unused variable is bad. Is it because the compiler would create a bigger binary? If yes...

setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1?

When I try to install odoo-server, I got the following error: error: Setup script exited with error: command 'x86_...

fatal error: Python.h: No such file or directory?

I am trying to build a shared library using a C extension file but first I have to generate the output file using th...

Gcc compilation “cannot compute suffix of object files: cannot compile”?

I'm actually reading the LFS book (version 7.1) and I'm blocked at page 53. Trying to compile gcc, I tried the follo...