[問題] Fujitsu fcc/FCC syntex error?
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Linux
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
不清楚
問題(Question):
有個物理上使用的code再gcc/g++下complie 良好
運行不錯
但移到超級電腦上時因為沒有gcc/g++的選擇
只能改用Fujitsu complier
有些我無法理解的error
因為我個人c不甚強
無法理解為何再gcc就過的了
換一家別牌的就過不了?
是option的問題還是我要改寫他的code?
餵入的資料(Input):
Linux) CC=fcc
#CFLAGS="-g -fsigned-char -Wstrict-prototypes -Wimplicit
-Wmissing-prototypes" (原始gcc的選項)
CFLAGS="-g"
lDL="-rdynamic -ldl"
SHARED=-shared
SONAME=
FC=frt
#FFLAGS="-fno-automatic" (原始gfortran選項)
#lFort=-lgfortran (原始gfortran選項)
CXX=FCC
CXXFLAGS=-g
RANLIB=ranlib
;;
預期的正確結果(Expected Output):
正確complie
錯誤結果(Wrong Output):
dummy_output.c:
"dummy_output.c", line 9: error: the size of an array must be greater than
zero
static ModelPrtclsStr ModelPrtcls_[0]={ };
^
"dummy_output.c", line 9: error: expected an expression
static ModelPrtclsStr ModelPrtcls_[0]={ };
^
"dummy_output.c", line 15: error: the size of an array must be greater than
zero
static char*varNames_[0]={};
^
"dummy_output.c", line 15: error: expected an expression
static char*varNames_[0]={};
^
"dummy_output.c", line 19: error: the size of an array must be greater than
zero
static REAL varValues_[0]={};
^
"dummy_output.c", line 19: error: expected an expression
static REAL varValues_[0]={};
^
6 errors detected in the compilation of "dummy_output.c".
程式碼(Code):(請善用置底文網頁, 記得排版)
有問題的部份如上
原始的package 再
http://lapth.cnrs.fr/micromegas/downloadarea/code/micromegas_3.5.5.tgz
補充說明(Supplement):
感激幫忙
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 157.82.226.85
推
12/13 11:11, , 1F
12/13 11:11, 1F
→
12/13 12:25, , 2F
12/13 12:25, 2F
→
12/13 12:30, , 3F
12/13 12:30, 3F
→
12/13 12:40, , 4F
12/13 12:40, 4F