日期:2014-05-16  浏览次数:20578 次

parse error before `strlen'的错误
我用的是g++2.95,编译的是oracle oci的程序,是suselinux平台


etl@anaserver:~/oci> make -f makefile_linux
rm -r -f ociexp *.o
/opt/gcc295/bin/g++ -c extractoutfile.cpp
/opt/gcc295/bin/g++ -c etlconfig.cpp
etlconfig.cpp: In function `int loadEtlConfig(char *)':
etlconfig.cpp:52: parse error before `strlen'
etlconfig.cpp:64: confused by earlier errors, bailing out
make: *** [etlconfig.o] Error 1


有人告诉我肯能是strlen不在string.h中,可是那会在哪里呢???

哪位大虾能有一些思路呢??? 
不胜感激啊

------解决方案--------------------
看你头文件路径对了没有,有可能string.h指到suse的gcc4.x上去了
------解决方案--------------------
gcc版本太低了吧.oracle的代码不会有问题的.
------解决方案--------------------
应该不是头文件包含的问题,
我觉得可能是语法错误.
仔细检查一下.
------解决方案--------------------
看strlen函数前面有没有语法错误。譬如有没有忘记一个),或者多一个什么不合法的符号。