c - Cannot compile x86 in GCC crunchbang -
i cannot seem use gcc compile c x86. using crunchbang.
simple c test file:
#include <stdio.h> int main(){ printf("test x86"); }
when compiled with:gcc -o 64 test.c
i no errors or output whatsoever. however, when compiled with:gcc -o 64 -m32 test.c
greeted with:
in file included /usr/include/features.h:356:0, /usr/include/stdio.h:28, test.c:1: /usr/include/x86_64-linux-gnu/sys/cdefs.h:359:27: fatal error: bits/wordsize.h: no such file or directory compilation terminated.
now, browsing files, seems if in wrong folder because. i'm not sure here.
contents of /usr/include/features.h:586
# include <x86_64-linux-gnu/sys/cdefs.h>
which gives error on line 359. line shown here:
#include <bits/wordsize.h>
the file located here: /usr/include/x86_64-linux-gnu/bits/wordsize.h
gcc should support or run multilib
eliminate error.
Comments
Post a Comment