- 论坛徽章:
- 0
|
本人编译的pc文件中包含一个头文件 <netinet/in.h>
该头文件又include <byteswap.h>
我用pro*c编译 程序时,抱错,
Syntax error at line 51, column 17, file /usr/include/bits/byteswap.h:
Error at line 51, column 17 in file /usr/include/bits/byteswap.h
static __inline unsigned short int __bswap_16 (unsigned short int __bsx)
................1
PCC-S-02201, Encountered the symbol "unsigned" when expecting one of the followi
ng:
; , = ( [
The symbol ";" was substituted for "unsigned" to continue.
本人分析是 由于预编译时,不能识别这个 变量,导致 预编译错误
后来去掉pc中的sql语句,用gcc编译该c文件,编译通过,没有问题。
是不是可以通过修改pcscfg.cfg文件?
或者还有什么其他方法?
我网上搜了一下,只是看到有人也提出这样的问题,但是没有解决的方法? |
|