在fedora20下安装NETCDF遇到问题,求助!!!

noleyyy 发布于 2014/06/05 16:37
阅读 507
收藏 0


Making all in cxx
make[2]: 进入目录“/home/moriarty/netcdf-3.6.2/cxx”
depbase=`echo ncvalues.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
if /bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran  -DDEBUG   -I../libsrc   -g -O2 -MT ncvalues.lo -MD -MP -MF "$depbase.Tpo" -c -o ncvalues.lo ncvalues.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -DDEBUG -I../libsrc -g -O2 -MT ncvalues.lo -MD -MP -MF .deps/ncvalues.Tpo -c ncvalues.cpp -o ncvalues.o
ncvalues.cpp: In member function 'virtual char* NcValues_ncbyte::as_string(long int) const':
ncvalues.cpp:238:60: error: 'strncpy' was not declared in this scope
     strncpy(s, (const char*)the_values + n, (int)the_number);
                                                            ^
ncvalues.cpp: In member function 'virtual char* NcValues_char::as_string(long int) const':
ncvalues.cpp:246:60: error: 'strncpy' was not declared in this scope
     strncpy(s, (const char*)the_values + n, (int)the_number);
                                                            ^
make[2]: *** [ncvalues.lo] 错误 1
make[2]: 离开目录“/home/moriarty/netcdf-3.6.2/cxx”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/home/moriarty/netcdf-3.6.2”
make: *** [all] 错误 2

请问大家错误出在哪里啊,PGI已经安装成功了,安装NETCDF时一直有问题,是因为我下的这个版本太低吗?

加载中
返回顶部
顶部