爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 7821|回复: 15

WPS编译无法生成ungrib.exe

[复制链接]

新浪微博达人勋

发表于 2015-4-22 21:25:37 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 sama 于 2015-4-23 10:36 编辑

各位大大,我用的PGI编译器,NETCDF4.1.3,在编译WRF3.4.1时,WPS这一步一直不出现ungrib,我把log文件他贴出来,麻烦大家帮我分析分析

PGC-S-0040-Illegal use of symbol, __UINT_FAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [enc_jpeg2000.o] Error 2 (ignored)
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_jpeg2000.c
PGC-S-0040-Illegal use of symbol, __INT_LEAST8_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-S-0040-Illegal use of symbol, __INT_LEAST16_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-S-0040-Illegal use of symbol, __INT_LEAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 62)

PGC-S-0040-Illegal use of symbol, __UINT_FAST16_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 76)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 76)
PGC-S-0040-Illegal use of symbol, __UINT_FAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [dec_jpeg2000.o] Error 2 (ignored)
/lib/cpp -C -P -traditional -DUSE_JPEG2000 -DUSE_PNG pngpack.F > pngpack.f90
pgf90 -c -Mfixed -byteswapio -O pngpack.f90
/bin/rm -f pngpack.f90
/lib/cpp -C -P -traditional -DUSE_JPEG2000 -DUSE_PNG pngunpack.F > pngunpack.f90
pgf90 -c -Mfixed -byteswapio -O pngunpack.f90
/bin/rm -f pngunpack.f90
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ enc_png.c
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_png.c
pgf90 -c -Mfixed -byteswapio -O gbytesc.f
pgf90 -c -Mfixed -byteswapio -O skgb.f

pgf90 -c -Mfixed -byteswapio -O g2grids.f
pgf90 -c -Mfixed -byteswapio -O gdt2gds.f
pgf90 -c -Mfixed -byteswapio -O params.f
pgf90 -c -Mfixed -byteswapio -O params_ecmwf.f
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ mova2i.c
/bin/rm -f libg2_4.a
ar ru  libg2_4.a gridtemplates.o pdstemplates.o drstemplates.o gribmod.o realloc.o addfield.o addgrid.o addlocal.o getfield.o gb_info.o gf_getfld.o gf_free.o gf_unpack1.o gf_unpack2.o gf_unpack3.o gf_unpack4.o gf_unpack5.o gf_unpack6.o gf_unpack7.o gettemplates.o getlocal.o getdim.o getpoly.o gribcreate.o gribend.o gribinfo.o mkieee.o rdieee.o simpack.o simunpack.o cmplxpack.o compack.o misspack.o pack_gp.o reduce.o comunpack.o specpack.o specunpack.o jpcpack.o jpcunpack.o enc_jpeg2000.o dec_jpeg2000.o pngpack.o pngunpack.o enc_png.o dec_png.o gbytesc.o skgb.o ixgb2.o getidx.o getg2i.o getg2ir.o getgb2s.o getgb2r.o getgb2l.o getgb2.o getgb2p.o getgb2rp.o putgb2.o g2grids.o gdt2gds.o params.o params_ecmwf.o mova2i.o
ar: creating libg2_4.a
ar: enc_jpeg2000.o: No such file or directory
make[2]: [libg2_4.a] Error 1 (ignored)
echo libg2_4.a
libg2_4.a
make[2]: Leaving directory `/home/program/WPS/ungrib/src/ngl/g2'
libg2_4.a
ln -sf g2/libg2_4.a .
make[1]: Leaving directory `/home/program/WPS/ungrib/src/ngl'
( cd src ; \
        if [ "" = yes ] ; then \
          WRF_DIR2=../WRFV3 ; \
        else \
          WRF_DIR2=/home/program/WPS/../WRFV3 ; \
        fi ; \
make -i -r ungrib.exe \
    WRF_DIR="$WRF_DIR2" \
    FC="pgf90" \
    CC="mpicc -cc=pgcc" \
    CPP="/lib/cpp -C -P -traditional" \
    FFLAGS="-Mfree -byteswapio -O" \
    CFLAGS="-O" \
    LDFLAGS="" \
    CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -D_UNGRIB" )

if [ -z  ] ; then \
          pgf90 -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
            -L./ngl -lw3 -lg2_4 \
            -L/usr/local/JASPER/lib -ljasper -lpng -lpng16 -lz \
            -L. -lpgu ; \
                        else \
          pgf90 -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
            ./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
            -L/usr/local/JASPER/lib -ljasper -lpng -lpng16 -lz \
            libpgu.a ; \
                        fi
/usr/bin/ld: cannot find -lg2_4
make[1]: [ungrib.exe] Error 2 (ignored)
make[1]: Leaving directory `/home/program/WPS/ungrib/src'
if [ -h ungrib.exe ] ; then \
        /bin/rm -f ungrib.exe ; \
fi ; \
if [ -h ../ungrib.exe ] ; then \
    /bin/rm -f ../ungrib.exe ; \
fi ; \
if [ -e src/ungrib.exe ] ; then \
    ln -sf src/ungrib.exe . ; \
fi

PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [enc_jpeg2000.o] Error 2 (ignored)
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_jpeg2000.c
PGC-S-0040-Illegal use of symbol, __INT_LEAST8_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-S-0040-Illegal use of symbol, __INT_LEAST16_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-S-0040-Illegal use of symbol, __INT_LEAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 62)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 62)
PGC-S-0040-Illegal use of symbol, __INT_LEAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 63)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 63)
PGC-S-0040-Illegal use of symbol, __UINT_LEAST8_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 64)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 64)
PGC-S-0040-Illegal use of symbol, __UINT_FAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [dec_jpeg2000.o] Error 2 (ignored)
/bin/rm -f libg2_4.a
ar ru  libg2_4.a gridtemplates.o pdstemplates.o drstemplates.o gribmod.o realloc.o addfield.o addgrid.o addlocal.o getfield.o gb_info.o gf_getfld.o gf_free.o gf_unpack1.o gf_unpack2.o gf_unpack3.o gf_unpack4.o gf_unpack5.o gf_unpack6.o gf_unpack7.o gettemplates.o getlocal.o getdim.o getpoly.o gribcreate.o gribend.o gribinfo.o mkieee.o rdieee.o simpack.o simunpack.o cmplxpack.o compack.o misspack.o pack_gp.o reduce.o comunpack.o specpack.o specunpack.o jpcpack.o jpcunpack.o enc_jpeg2000.o dec_jpeg2000.o pngpack.o pngunpack.o enc_png.o dec_png.o gbytesc.o skgb.o ixgb2.o getidx.o getg2i.o getg2ir.o getgb2s.o getgb2r.o getgb2l.o getgb2.o getgb2p.o getgb2rp.o putgb2.o g2grids.o gdt2gds.o params.o params_ecmwf.o mova2i.o
ar: creating libg2_4.a
ar: enc_jpeg2000.o: No such file or directory
make[2]: [libg2_4.a] Error 1 (ignored)
echo libg2_4.a
libg2_4.a
make[2]: Leaving directory `/home/program/WPS/ungrib/src/ngl/g2'
libg2_4.a
ln -sf g2/libg2_4.a .

相应的configure.wps文件如下:
# configure.wps
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults, the preamble, and the postamble -
# then rerun configure.
#

.SUFFIXES: .F .f .c .o

SHELL               =       /bin/sh

NCARG_LIBS        =    -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
                -L/usr/lib -lX11

NCARG_LIBS2        =    # May be overridden by architecture specific value below

FDEFS            =    -DUSE_JPEG2000 -DUSE_PNG

# Listing of options that are usually independent of machine type.
# When necessary, these are over-ridden by each architecture.

ARFLAGS            =   

PERL            =    perl

RANLIB            =    echo

WRF_DIR            =    ../WRFV3

WRF_INCLUDE     =       -I$(WRF_DIR)/external/io_netcdf \
                        -I$(WRF_DIR)/external/io_grib_share \
                        -I$(WRF_DIR)/external/io_grib1 \
                        -I$(WRF_DIR)/external/io_int \
                        -I$(WRF_DIR)/inc

WRF_LIB         =       -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
                        -L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
                        -L$(WRF_DIR)/external/io_int -lwrfio_int \
                        -L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
                        -L$(NETCDF)/lib -lnetcdff -lnetcdf

#### Architecture specific settings ####

COMPRESSION_LIBS    =  # intentionally left blank, fill in COMPRESSION_LIBS below

COMPRESSION_INC        =  # intentionally left blank, fill in COMPRESSION_INC below

#
#   Settings for Linux x86_64, PGI compiler   (dmpar_NO_GRIB2)
#
#
COMPRESSION_LIBS    =  -L/usr/local/grib2/lib -ljasper -lpng -lpng16 -lz
COMPRESSION_INC     = -I/usr/local/grib2/include  
FDEFS               =
NCARG_LIBS2         = -L${PGI}/linux86-64/9.0-1/lib -lpgftnrtl -lpgc \
                      -L/usr/lib/gcc/x86_64-redhat-linux/4.5.1 -lg2c
SFC                 = pgf90
SCC                 = pgcc
DM_FC               = mpif90 -f90=pgf90
DM_CC               = mpicc -cc=pgcc
FC                  = $(DM_FC)
CC                  = $(DM_CC)
LD                  = $(FC)
FFLAGS              = -Mfree -byteswapio -O
F77FLAGS            = -Mfixed -byteswapio -O
FCSUFFIX            =
FNGFLAGS            = $(FFLAGS)
LDFLAGS             =
CFLAGS              = -O
CPP                 = /lib/cpp -C -P -traditional
CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI
ARFLAGS             =
CC_TOOLS            =

########################################################################################################################
#
#    Macros, these should be generic for all machines

LN        =    ln -sf
MAKE        =    make -i -r
RM        =     /bin/rm -f
CP        =     /bin/cp
AR        =    ar ru

.IGNORE:
.SUFFIXES: .c .f .F .o

#    There is probably no reason to modify these rules

.c.o:
    $(RM) $@
    $(CC) $(CPPFLAGS) $(CFLAGS) -c $<   

.f.o:
    $(RM) $@ $*.mod
    $(FC) $(F77FLAGS) -c $< $(WRF_INCLUDE)

.F.o:
    $(RM) $@ $*.mod
    $(CPP) $(CPPFLAGS) $(FDEFS) $(WRF_INCLUDE) $< > $*.f90
    $(FC) $(FFLAGS) -c $*.f90 $(WRF_INCLUDE)
#    $(RM) $*.f90

我的/root/.bashrc文件配置如下

17 export PGI=/usr/local/pgi/linux86-64/9.0-1/
18 export LM_LICENSE_FILE=/usr/local/pgi/license.dat
19 export PGI_LIB=$PGI/lib
20 export PGI_INC=$PGI/include
21 export PATH=$PATH:$PGI/bin
23 export MPI=/usr/local/mpi
24 export MPICH_INC=/usr/local/mpi/include
25 export MPICH_LIB=/usr/local/mpi/lib
26 export PATH=$PATH:$MPI/bin
27
28
29 export NETCDF=/usr/local/netcdf
30 export NETCDF_LIB=/usr/local/netcdf/lib
31 export NETCDF_INC=/usr/local/netcdf/include
32 export PATH=$PATH:$NETCDF/bin
33
34 export NCARG_ROOT=/usr/local/ncl
35 export NCARG_LIB=/usr/local/ncl/lib
36 export NCARG_INC=/usr/local/ncl/include
37 export PATH=$PATH:$NCARG_ROOT/bin
54 #zlib
55 export ZLIB_HOME=/usr/local/zlib
56 export LD_LIBRARY_PATH=$ZLIB_HOME/lib:$LD_LIBRARY_PATH
57
58 #libpng
59 export LIBPNG_HOME=/usr/local/libpng
60 export LIBPNGLIB=/usr/local/libpng/lib
61 export LIBPNGINC=/usr/local/libpng/include
62
63
64 #JASPER
65 export JASPER=/usr/local/JASPER
66 export JASPERLIB=/usr/local/JASPER/lib
67 export JASPERINC=/usr/local/JASPER/include

还望大家不吝赐教啊,纠结好久了,谢谢







密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-4-23 10:38:44 | 显示全部楼层
letsdo8 发表于 2015-4-23 10:02
gcc百度百科
GNU编译器套件(GNU Compiler Collection)包括C、C++、Objective-C、Fortran、Java、Ada和Go ...

非常感谢,您是说我的
SFC                 = pgf90
SCC                 = pgcc
DM_FC               = mpif90 -f90=pgf90
DM_CC               = mpicc -cc=pgcc
这一段设置不对吗?我的netcdf就是用PGI编译的
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 1

使用道具 举报

新浪微博达人勋

发表于 2015-4-22 21:50:18 | 显示全部楼层
可能是grib2库的问题,去wps的configure文件里面改库的路径
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-23 08:18:52 | 显示全部楼层
混用了吧,gfortran得用一种,PGI得用另一种。

还有是在root下编译的吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-4-23 08:37:19 | 显示全部楼层
又是那隻貓 发表于 2015-4-22 21:50
可能是grib2库的问题,去wps的configure文件里面改库的路径

估计是的,我昨晚编译NO BRIB2的WPS就成功了,还想请问下,具体改configure.wps的哪一项?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-4-23 08:45:38 | 显示全部楼层
letsdo8 发表于 2015-4-23 08:18
混用了吧,gfortran得用一种,PGI得用另一种。

还有是在root下编译的吗?

是在root下编译的……还有就是,我一直没太弄清gfortran、PGI、gcc之间的关系,gcc(GNU compiler collection)不是指的编译器集合吗,在其中没有包含有Fortran的编译器,为何还要单独安装?我的理解是gfortran和PGI都是Fortran的编译器,两者在编译WRF的时候选其一就行,是不是这样?麻烦您帮我解答下,我没懂混用的意思,感谢感谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-23 09:57:16 | 显示全部楼层
本帖最后由 letsdo8 于 2015-4-23 10:00 编辑

但是netcdf等库程序必须是同一编译器生成的。

GNU、PGI、Intel是三种,

GNU是Linux自带的免费的,速度慢1/3~1/2,一般不与另两个通用。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-23 10:00:46 | 显示全部楼层
gcc是GNU C compiler,应该不是你那个
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-4-23 10:02:31 | 显示全部楼层
本帖最后由 letsdo8 于 2015-4-23 10:05 编辑

gcc百度百科
GNU编译器套件(GNU Compiler Collection)包括C、C++、Objective-C、Fortran、Java、Ada和Go语言的前端,也包括了这些语言的库(如libstdc++、libgcj等等)。GCC的初衷是为GNU操作系统专门编写的一款编译器。GNU系统是彻底的自由软件。


这上面倒数第二句,像是不太对的。应该是“gcc是GNU编译器套件中的C语言编译器”。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-5-13 22:13:43 | 显示全部楼层
keng自己人的吧 这些代码看不懂

                               
登录/注册后可看大图
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

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