gcc 問題 -> 未找到 stdio.h

gcc 問題 -> 未找到 stdio.h

我必須編寫一個程式。理論上我只需要改變兩條路徑...

你能幫助我嗎?

產生檔案

# Original
#CC=arm-1136jf_s_r1_vfp_hard_float-linux-gnueabi-gcc
#CFLAGS= -O3 -ffunction-sections -fdata-sections --sysroot=/home/mguivarch/Desktop/buildroot-2011.08-advansee/build/staging/ 
#LDFLAGS= -Wl,--gc-sections -lpthread -lrt -lm -L/home/mguivarch/Desktop/buildroot-2011.08-advansee/build/staging/usr/lib

# Change I made
CC=gcc 
CFLAGS= -O3 -ffunction-sections -fdata-sections --sysroot=/home/mihai/Desktop/MIPSEE/Programme
LDFLAGS= -Wl,--gc-sections -lpthread -lrt -lm -L/usr/include


EXEC=livic_sync

all: $(EXEC)


livic_sync: capture.o main.o clientTCP.o
$(CC) -o livic_sync capture.o main.o clientTCP.o $(LDFLAGS)


clientTCP.o: ClientTCP.c main.h
$(CC) -o clientTCP.o -c ClientTCP.c $(CFLAGS)

capture.o: capture.c ClientTCP.h
$(CC) -o capture.o -c capture.c $(CFLAGS)


main.o: main.c capture.h
$(CC) -o main.o -c main.c $(CFLAGS)


clean:
rm *.o


mrproper: clean
rm $(EXEC)

vPro:~/Desktop/MIPSEE/Programme$ make

gcc -o capture.o -c capture.c -O3 -ffunction-sections -fdata-sections --sysroot=/home /mihai/Desktop/MIPSEE/Programme

capture.c:9:19: 致命錯誤: stdio.h: 沒有這樣的檔案或目錄

編譯終止。

製作:*[捕獲.o]錯誤1


:~/桌面/MIPSEE/程式$ ls -l

總計 216

-rw-r--r-- 1 mihai mihai 15905 十月 30 日 19:34 capture.c

-rw-r--r-- 1 mihai mihai 453 2012 年 7 月 17 日 capture.h

-rw-r--r-- 1 mihai mihai 3228 2012 年 7 月 18 日 ClientTCP.c

-rw-r--r-- 1 mihai mihai 217 2012 年 9 月 13 日 ClientTCP.h

-rw-r--r-- 1 mihai mihai 948 2012 年 2 月 10 日 ClientUDP.c

-rw-r--r-- 1 mihai mihai 141 2012 年 2 月 9 日 ClientUDP.h

drwxrwxr-x 18 米哈伊 米哈伊 4096 十一月 1 10:11 html

-rw-r--r-- 1 mihai mihai 6459 十月 30 日 19:31 main.c

-rw-r--r-- 1 米哈伊 米哈伊 1374 2012 年 6 月 21 日 main.h

-rw-r--r-- 1 mihai mihai 865 十一月 1 12:46 Makefile

-rw-r--r-- 1 mihai mihai 870 十一月 1 12:30 Makefile~

-rw-rw-r-- 1 mihai mihai 75566 十一月 1 10:11 mihaiDoxygenConfig

-rw-rw-r-- 1 mihai mihai 75568 十月 30 日 14:57 mihaiDoxygenConfig~

drwxr-xr-x 3 mihai mihai 4096 十月 30 日 19:55 MIPSEE

:~/桌面/MIPSEE/程式$


:~/Desktop/MIPSEE/Programme$ 定位 stdio.h

/usr/include/stdio.h

/usr/include/boost/iostreams/filter/stdio.hpp

/usr/include/c++/4.6/tr1/stdio.h

/usr/include/glib-2.0/glib/gstdio.h

/usr/include/i386-linux-gnu/bits/stdio.h

/usr/include/unicode/ustdio.h

/usr/lib/perl/5.14.2/CORE/nostdio.h

/usr/lib/syslinux/com32/include/stdio.h

相關內容