|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
大家好,我的udf经过调试,感觉语法错误都应该没有了才是,可是还是出现下面的问题:
我觉得奇怪的是,为何分两成块来报错?难道是因为我的程序里有两个define macro的缘故?我可以肯定第一块错误里面的'tepflowrate' : undeclared identifier之类的错误是不会出现的,我都real tepflowrate;定义好了。至于int 到float的错误,这个我真是摸不着头脑,感觉整型变量的定义,怎么可能出现错误呢?
至于第二块的错误,我搜了搜,有人说,这不是程序语句的问题,这是编译器的问题...
难道要手动添加环境变量么?我添加了lib; path;libpath,但是也没区别啊...
我用的是win7 64位系统,使用的是fluent技术支持提供的 vs2010 express edition+windows sdk+.net framework 3.5 sp1的组合,从sdk的cmd shell来启动fluent,这个启动倒是没问题的。
Deleted old \MECHSE-JACOB-02\users\meng8\desktop estbed\libudf\win64\3ddp_host\libudf.dll
\MECHSE-JACOB-02\users\meng8\desktop estbed\libudf\win64\3ddp_node\libudf.dll
1 file(s) copied.
(system "copy "C:\ANSYSI~1\v121\fluent"\fluent12.1.4\src\makefile_nt.udf \MECHSE-JACOB-02\users\meng8\desktop\testbed\libudf\win64\3ddp_host\makefile")
1 file(s) copied.
(chdir "\MECHSE-JACOB-02\users\meng8\desktop\testbed\libudf")()
(chdir "win64\3ddp_host")()
C:\Windows\twain.dll
C:\Windows\twain_32.dll
# Generating ud_io1.h
udfsource.c
..\..\src\udfsource.c(102) : error C2065: 'tepflowrate' : undeclared identifier
..\..\src\udfsource.c(102) : warning C4133: 'function' : incompatible types - from 'int *' to 'double *'
..\..\src\udfsource.c(102) : error C2065: 'vol_tot' : undeclared identifier
..\..\src\udfsource.c(102) : warning C4133: 'function' : incompatible types - from 'int *' to 'double *'
..\..\src\udfsource.c(105) : error C2065: 'source' : undeclared identifier
..\..\src\udfsource.c(105) : error C2065: 'tepflowrate' : undeclared identifier
..\..\src\udfsource.c(105) : error C2065: 'vol_tot' : undeclared identifier
..\..\src\udfsource.c(107) : error C2065: 'source' : undeclared identifier
..\..\src\udfsource.c(108) : error C2143: syntax error : missing ')' before ';'
..\..\src\udfsource.c(108) : error C2143: syntax error : missing ';' before ','
..\..\src\udfsource.c(108) : error C2059: syntax error : ')'
'\\MECHSE-JACOB-02\users\meng8\desktop\testbed'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
'\\MECHSE-JACOB-02\users\meng8\desktop\testbed'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
(system "copy "C:\ANSYSI~1\v121\fluent"\fluent12.1.4\src\makefile_nt.udf \MECHSE-JACOB-02\users\meng8\desktop\testbed\libudf\win64\3ddp_node\makefile")
'\\MECHSE-JACOB-02\users\meng8\desktop\testbed'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
1 file(s) copied.
(chdir "\MECHSE-JACOB-02\users\meng8\desktop\testbed\libudf")()
(chdir "win64\3ddp_node")()
C:\Windows\twain.dll
C:\Windows\twain_32.dll
# Generating ud_io1.h
udfsource.c
..\..\src\udfsource.c(22) : error C2143: syntax error : missing ')' before ';'
..\..\src\udfsource.c(22) : error C2059: syntax error : ')'
..\..\src\udfsource.c(23) : error C2143: syntax error : missing ')' before ';'
..\..\src\udfsource.c(23) : error C2059: syntax error : ')'
..\..\src\udfsource.c(89) : error C2143: syntax error : missing ')' before ';'
..\..\src\udfsource.c(89) : error C2059: syntax error : ')'
..\..\src\udfsource.c(90) : error C2143: syntax error : missing ')' before ';'
..\..\src\udfsource.c(90) : error C2059: syntax error : ')' |
|