[求助]g++不支持bool么?(编译lam-7.1.4)

编译打包和其他
回复
AlphaSenna
帖子: 2
注册时间: 2007-07-27 17:05

[求助]g++不支持bool么?(编译lam-7.1.4)

#1

帖子 AlphaSenna » 2009-08-14 11:17

在./configure过程中lam对编译器进行检查出错,说g++不支持bool,应该支持啊,在centos上编译成功,现附错误及log文件,望好心人帮帮忙,先谢谢了。

终端显示
*** C++ compiler and preprocessor
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking if want C++ exception handling... no
checking whether g++ has new(std::nothrow)... no
checking for C++ template repository directory... templates not supported?
not used
checking for C++ compiler template parameters... none needed
checking for C++ optimization flags... -O3
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking map usability... yes
checking map presence... yes
checking for map... yes
checking for type bool... no
checking for true/false... no
configure: WARNING: *** Your C++ compiler does not support the bool data type.
configure: WARNING: *** LAM requires a C++ compiler with support for the bool
configure: WARNING: *** data type.
configure: error: cannot continue

log文件
|| test ! -s conftest.err
configure:3448: $? = 0
configure:3451: test -s conftest.o
configure:3454: $? = 0
configure:3472: result: none needed
configure:3490: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3496: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3640: checking for style of include used by make
configure:3668: result: GNU
configure:3696: checking dependency style of gcc
configure:3786: result: gcc3
configure:3809: checking how to run the C preprocessor
configure:3844: gcc -E conftest.c
configure:3850: $? = 0
configure:3882: gcc -E conftest.c
conftest.c:19:28: error: ac_nonexistent.h: No such file or directory
configure:3888: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
kingdow
帖子: 1
注册时间: 2009-11-23 21:16

Re: [求助]g++不支持bool么?(编译lam-7.1.4)

#2

帖子 kingdow » 2009-12-10 21:46

Lz问题解决了没? 我的也是啊 :em20
回复