- 积分
- 129
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-3-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近在使用C调用netcdf库函数时编译出错,下面贴的是C代码的头文件:
#include <stdio.h>
#include <string.h>
#include "netcdf.h"
/* This is the name of the data file we will read. */
#define FILE_NAME "/home/tim/RegCM-4.6.0/RUN/Output/Shanghai_ATM.1979010100.nc"
/* Handle errors by printing an error message and exiting with a
/ * non-zero status. */
#define TEM "ta"
#define ERR(e) {printf("Error: %s\n", nc_strerror(e)); return 2;}
编译结果如下图:
请教各位高手相助
|
-
编译结果
|