Compiling / Loading UDF
I had the same problem as posted earlier in this forum:
I have some problems with compiling UDF's in Fluent. I've looked around at this forum and already tried some suggested solutions but none of them could really solve the problem. At first the following error occurred when I builded and loaded the library in Fluent:
"'CANT FIND NMAKE' , 'CHNG DIRC' (chdir "libudf")() (chdir "ntx86\\2ddp")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file."
This was solved when I installed Microsoft Visual Studio 5 Express (which includes a command line compiler) and I put nmake in the path. But then the following error occured: "Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. Error Object: ()" The log file in the ntx86 folder of the libudf folder shows that the following error occurs: "NMAKE : U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0xc0000135' Stop."
I saw in some solutions to this problem that sometimes a little change to the environment variables has to be made to solve the problem (I already had to add to the path manually the folder in which nmake was located). I'm not an expert in this kind of things, my question is as follows: should I add/delete more information to the environment variables (user and system variables) to solve this problem and if so which variable do I have to add/delete and which corresponding value?
Maybe I'm totally wrong and it doesn't have anything to do with the environment variables. In that case, does someone have an idea what the problem could be? Maybe it's a problem related to the UDF I've written?
And after a long search in google. I found the following path's which I had to add to my enviroment conditions.
To do so, go to Control panel | System | Advanced | environment conditions...
path: C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin; C:\Microsoft Visual Studio 9.0\Common7\IDE C:\Microsoft Visual Studio 9.0\VC\bin
lib: C:\Microsoft Visual Studio 9.0\VC\lib; C:\Microsoft Visual Studio 9.0\VC\ce\lib; C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
include: C:\Microsoft Visual Studio 9.0\VC\include; C:\Microsoft Visual Studio 9.0\VC\ce\include; C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
I don't know if they are all necessary but, you should at least have C:\Microsoft Visual Studio 9.0\VC\bin
Re: Compiling / Loading UDF
You should start from the "Visual Studio Command Prompt" in the Visual Studio Tools menu. The environment variables will be automatically set ready.
|All times are GMT -4. The time now is 12:26.|