Headers Configuration

3

I'm trying to compile some code in "C" via GCC (Derbian - Kali Linux), and when compiling, I get error messages saying that files like linux/linkage.h and asm/linkage.h could not be found. When issuing the locate linkage.h command, I have verified that such files are in a directory other than the default directory. These files are in the /usr/src/linux-headers-4.3.0-kali1-common/include/linux/linkage.h and /usr/src/linux-headers-4.3.0-kali1-common/include/asm/linkage.h

How do I make GCC consider these directories instead of the default directories?

    
asked by anonymous 12.05.2016 / 13:14

1 answer

2

Ideally, the files should be in the places where the compiler looks.

If this is not possible, use the compilation directive I and indicate where they are the include file.

-I/usr/src/linux-headers-4.3.0-kali1-common/include/linux/
-I/usr/src/linux-headers-4.3.0-kali1-common/include/asm/
    
12.05.2016 / 14:47