2013年9月6日星期五

Identifier " * " missing binary operator before

Debugger, references the header file , compile time an error :
[exec] / usr / include / bits / xopen_lim.h: 95:6: error: identifier " ( " missing binary operator before
[exec] / usr / include / bits / xopen_lim.h: 98:7: error: identifier " ( " missing binary operator before
I opened the header file code, see 95, 98 rows:
# ifdef INT_MAX
# if INT_MAX == 32767 / / 95 lines
# define WORD_BIT 16
# else
# if INT_MAX == 2147483647 / / 98 lines
# define WORD_BIT 32
# else
/ * Safe assumption. * /
# define WORD_BIT 64
# endif
# endif
This meaning is very simple to determine how many machines , but why is there such a mistake ? How to solve ?
Big Singles engage in code , the old programmers pity on me , give Solution Now !
Note : fedora environment, install HCE (hadoop of c + + extensions ) run sh build.sh when
------ Solution -------------- ------------------------------
based on experience, this may be your grammatical errors saying , not your posts out .
------ For reference only -------------------------------------- -
you try precompiled header file , if no error, you can only be a shell script problem
------ For reference only ------------ ---------------------------
headers tried, no problem.
------ For reference only -------------------------------------- -
header files should not be the issue , it is best to find the reasons from their own code
------ For reference only ------------------ ---------------------
[exec] then mv-f ".deps / CompressionFactory.Tpo" ". deps / CompressionFactory.Po "; else rm-f" .deps / CompressionFactory.Tpo "; exit 1; fi
[exec] In file included from / usr / include / limits.h: 153:0,
[exec] ; from / usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/limits.h: 169,
[exec] ; from / usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/syslimits.h: 7,
[exec] ; from / usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/limits.h: 34,
[exec] ; from / home/dlk/hadoop_hce_v1/hadoop-0.20.3/src/c + + / hce / impl /.. /.. /.. /.. / nativelib / lzo / lzo / lzoconf.h: 52,
[exec] ; from / home/dlk/hadoop_hce_v1/hadoop-0.20.3/src/c + + / hce/impl/../../../../nativelib/lzo/lzo/lzo1.h: 45,
[exec] ; from / home/dlk/hadoop_hce_v1/hadoop-0.20.3/src/c + + / hce / impl / Compress / LzoCompressor.hh: 23,
[exec] ; from / home/dlk/hadoop_hce_v1/hadoop-0.20.3/src/c + + / hce / impl / Compress / LzoCodec.hh: 27,
[exec] ; from / home/dlk/hadoop_hce_v1/hadoop-0.20.3/src/c + + / hce / impl / Compress / CompressionFactory.cc: 23:
[exec] / usr / include / bits / xopen_lim.h: 95:6: error: identifier " ( " missing binary operator before
[exec] / usr / include / bits / xopen_lim.h: 98:7: error: identifier " ( " missing binary operator before
[exec] / usr / include / bits / xopen_lim.h: 122:6: error: identifier " ( " missing binary operator before
[exec] make [1]: *** [CompressionFactory.o] Error 1

------ For reference only ---------------------------------- -----
identifier " * " missing binary operator before , do you solve this problem . . I have encountered, if solved , could share the experience under ah

没有评论:

发表评论