|
我用X86的编译器可以编译pppsetup程序,但将Makefile改成3.3.2的arm-linux-gcc后就出现大量错误,现在急着要将其移植到开发板上,有没有哪位可疑帮我看看?
错误如下:
[root@localhost pppsetupm21]# make
/usr/local/arm/3.3.2/bin/arm-linux-gcc -o ppp ppp.c
ppp.c:65:14: missing terminating " character
ppp.c:67:3: invalid preprocessing directive #This
ppp.c:69:3: invalid preprocessing directive #This
ppp.c:69:53: missing terminating ' character
ppp.c:70:3: invalid preprocessing directive #connection
ppp.c:72:3: invalid preprocessing directive #Put
ppp.c:74:3: invalid preprocessing directive #The
ppp.c:74:45: missing terminating ' character
ppp.c:75:3: invalid preprocessing directive #ends
ppp.c:77:3: invalid preprocessing directive #The
ppp.c:78:3: invalid preprocessing directive #be
ppp.c: In function `write_setup':
ppp.c:80: error: parse error before "ATH"
ppp.c:83:3: invalid preprocessing directive #This
ppp.c:84:3: invalid preprocessing directive #make
ppp.c:85:3: invalid preprocessing directive #$4
ppp.c:87:3: invalid preprocessing directive #The
ppp.c:88:3: invalid preprocessing directive #reports
ppp.c:90:3: invalid preprocessing directive #You
ppp.c:91:3: invalid preprocessing directive #modem
ppp.c:92:3: invalid preprocessing directive #Examples
ppp.c:94: error: stray '\' in program
ppp.c:94:25: missing terminating " character
ppp.c:95: error: stray '\' in program
ppp.c:95:25: missing terminating " character
ppp.c:97: error: stray '\' in program
ppp.c:97:5: missing terminating " character
ppp.c:98: error: stray '\' in program
ppp.c:98:11: missing terminating " character
ppp.c:101: error: stray '\' in program
ppp.c:101:7: missing terminating " character
ppp.c:104:2: invalid preprocessing directive #End
ppp.c:105:1: missing terminating " character
make: *** [ppp] Error 1
以下是我的Makefile:
# Makefile for ppp.c
#CC =/usr/local/arm/2.95.3/bin/arm-linux-gcc #make for 2410
CC =/usr/local/arm/3.3.2/bin/arm-linux-gcc #make for Mx21
#CC =gcc
CFLAGS = -Wall -ansi -O2 -m -fomit-frame-pointer -fno-builtin -static #Mx21
#CFLAGS = -Wno-all -ansi -m -static
#$(CC) $(CFLAGS) -o ppp ppp.c
all: ppp
ppp:
$(CC) -o ppp ppp.c
install:
cp ppp /usr/bin ; chmod 755 /usr/bin/ppp
clean:
rm -f ppp
源代码见附件 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|