相关疑难解决方法(0)

针对不同操作系统的Gfortran预处理器指令

你能告诉我怎样才能做到以下几点:

#if __unix__
#define path_sep='/'
#elif __windows__
#define path_sep='\'
#else
#error "path_sep not defined."
#endif
Run Code Online (Sandbox Code Playgroud)

使用gfortran编译器.

preprocessor fortran

4
推荐指数
1
解决办法
3613
查看次数

标签 统计

fortran ×1

preprocessor ×1