找回密码
 注册
查看: 3109|回复: 0

OpenLB编译问题,求助

[复制链接]
发表于 2012-12-5 12:44:32 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
用的是Cygwin。
gcc信息如下:
$ gcc -v
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
目标:i686-pc-cygwin
配置为:/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure --srcdir=/gnu/gcc/releases/respins/4.5.3-
3/gcc4-4.5.3-3/src/gcc-4.5.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
线程模型:posix
gcc 版本 4.5.3 (GCC)

编译的错误信息如下:
$make
-------------------------------------------------------------
-------------------------------------------------------------
../../src/external/boost/wchar.h:718:6:错误:expectedinitializerbefore‘throw’
Infileincludedfrom/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/postypes.h:42:0,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/char_traits.h:42,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/string:42,
from../../src/complexGrids/mpiManager/mpiManager.h:32,
fromheuristicLoadBalancer.h:28,
fromheuristicLoadBalancer.cpp:24:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:148:11:错误:‘::fwide’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:149:11:错误:‘::fwprintf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:150:11:错误:‘::fwscanf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:160:11:错误:‘::swprintf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:162:11:错误:‘::swscanf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:164:11:错误:‘::vfwprintf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:169:11:错误:‘::vswprintf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:174:11:错误:‘::vwprintf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:204:11:错误:‘::wprintf’尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:205:11:错误:‘::wscanf’尚未声明
Infileincludedfrom/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/gthr.h:162:0,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ext/atomicity.h:34,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/basic_string.h:41,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/string:53,
from../../src/complexGrids/mpiManager/mpiManager.h:32,
fromheuristicLoadBalancer.h:28,
fromheuristicLoadBalancer.cpp:24:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/gthr-default.h:在函

数‘int__gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t*)’中:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/gthr-default.h:780:10:错误:‘PTHREAD_MUTEX_RECURSIVE’在

此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/gthr-default.h:780:33:错误:‘pthread_mutexattr_settype’

在此作用域中尚未声明
Infileincludedfrom/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/locale_facets.h:43:0,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/basic_ios.h:39,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ios:45,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ostream:40,
from/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:40,
from../../src/io/ostreamManager.h:28,
from../../src/complexGrids/mpiManager/mpiManager.h:33,
fromheuristicLoadBalancer.h:28,
fromheuristicLoadBalancer.cpp:24:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:在全局域:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:44:35:错误:‘_U’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:45:32:错误:‘_L’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:46:32:错误:‘_U’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:46:37:错误:‘_L’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:47:32:错误:‘_N’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:48:33:错误:‘_X’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:48:38:错误:‘_N’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:49:32:错误:‘_S’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:32:错误:‘_P’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:37:错误:‘_U’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:42:错误:‘_L’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:47:错误:‘_N’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:52:错误:‘_B’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:32:错误:‘_P’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:37:错误:‘_U’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:42:错误:‘_L’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:47:错误:‘_N’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:52:32:错误:‘_C’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:53:32:错误:‘_P’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:54:32:错误:‘_U’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:54:37:错误:‘_L’在此作用域中尚未声明
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:54:42:错误:‘_N’在此作用域中尚未声明

有人能告诉我这是什么原因么?谢谢了。。

编译错误.zip

3.2 KB, 下载次数: 67

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表