|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
嵌入式WEB服务器BOA的移植时发生错误
执行make时出现错误如下
util.c:100:40: pasting "t" and "->" does not give a valid preprocessing token
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
/tmp/cc0np8jA.o(.text+0x8f): In function `get_commonlog_time':
: undefined reference to `use_localtime'
/tmp/cc0np8jA.o(.text+0x9a): In function `get_commonlog_time':
: undefined reference to `current_time'
/tmp/cc0np8jA.o(.text+0xb8): In function `get_commonlog_time':
: undefined reference to `current_time'
/tmp/cc0np8jA.o(.text+0x5cc): In function `modified_since':
: undefined reference to `log_error_time'
/tmp/cc0np8jA.o(.text+0x8cc): In function `rfc822_time_buf':
: undefined reference to `current_time'
/tmp/cc0np8jA.o(.text+0xc42): In function `create_temporary_file':
: undefined reference to `tempdir'
/tmp/cc0np8jA.o(.text+0xc77): In function `create_temporary_file':
: undefined reference to `log_error_time'
/tmp/cc0np8jA.o(.text+0xce8): In function `create_temporary_file':
: undefined reference to `log_error_time'
/tmp/cc0np8jA.o(.text+0xd3a): In function `create_temporary_file':
: undefined reference to `log_error_time'
collect2: ld returned 1 exit status
[root@localhost src]# arm-linux-gcc -o util.o util.c
util.c:100:40: pasting "t" and "->" does not give a valid preprocessing token
[root@localhost src]# gcc -o util.o util.c
util.c:100:40: warning: pasting "t" and "->" does not give a valid preprocessing token
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
/tmp/ccvf0glO.o(.text+0x8f): In function `get_commonlog_time':
: undefined reference to `use_localtime'
/tmp/ccvf0glO.o(.text+0x9a): In function `get_commonlog_time':
: undefined reference to `current_time'
/tmp/ccvf0glO.o(.text+0xb8): In function `get_commonlog_time':
: undefined reference to `current_time'
/tmp/ccvf0glO.o(.text+0x5cc): In function `modified_since':
: undefined reference to `log_error_time'
/tmp/ccvf0glO.o(.text+0x8cc): In function `rfc822_time_buf':
: undefined reference to `current_time'
/tmp/ccvf0glO.o(.text+0xc42): In function `create_temporary_file':
: undefined reference to `tempdir'
/tmp/ccvf0glO.o(.text+0xc77): In function `create_temporary_file':
: undefined reference to `log_error_time'
/tmp/ccvf0glO.o(.text+0xce8): In function `create_temporary_file':
: undefined reference to `log_error_time'
/tmp/ccvf0glO.o(.text+0xd3a): In function `create_temporary_file':
: undefined reference to `log_error_time'
collect2: ld returned 1 exit status
是什么错误呀
我该怎么修改
我是新手
不知道怎么改
求各位大虾帮帮小弟
|
|