fluent17.0的udf和visual studio 2015的环境变量问题? 200
请问各位大神,在fluent17.0中编译udf,下面是build和load出现的问题:
Opening library "C:\Users\Administrator\Desktop\HXT2D\sanbufen\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64).
ϵͳÕÒ²»µ½Ö¸¶¨µÄÎļþ¡£
C:\Users\Administrator\Desktop\HXT2D\sanbufen\libudf\win64\2d\libudf.dll
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64).\n\nϵͳÕÒ²»µ½Ö¸¶¨µÄÎļþ¡£
\n\nC:\Users\Administrator\Desktop\HXT2D\sanbufen\libudf\win64\2d\libudf.dll
Error Object: #f
然后在网上说要改fluent里面的udf.bat,我的visual studio安装在D:\microsft visual studio2015里面,下面是我改动后的udf.bat:
set MSVC_DEFAULT=D:\microsft visual studio2015\microsft visual studio2015
if exist "%MSVC_DEFAULT%\VC\vcvarsall.bat" set MSVC=%MSVC_DEFAULT%
if not "%MSVC%" == "" goto msvc_env140
echo trying to find MS C compiler, version 120....
然后也改了系统的环境变量:
include
D:\microsft visual studio2015\VC\include
lib
D:\microsft visual studio2015\VC\lib
path
D:\microsft visual studio2015\Common7\IDE;D:\microsft visual studio2015\VC\bin
用户变量改得是和系统的变量一样的。
弄了好几天了,麻烦各位大神能指出我的问题所在,谢谢啦!