CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Compiling / Loading UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2008, 09:58
Default Compiling / Loading UDF
  #1
Martijn
Guest
 
Posts: n/a
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

regards,

martijn
  Reply With Quote

Old   December 16, 2008, 20:06
Default Re: Compiling / Loading UDF
  #2
Davy
Guest
 
Posts: n/a
You should start from the "Visual Studio Command Prompt" in the Visual Studio Tools menu. The environment variables will be automatically set ready.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading parallel udf Pablo FLUENT 7 March 6, 2011 11:25
UDF Error while loading Sujay S FLUENT 8 November 12, 2007 23:30
Loading data Konstantinos Siemens 10 March 8, 2006 06:50
Udf loading error John FLUENT 2 June 7, 2004 14:30
error when loading UDF Christian FLUENT 1 July 31, 2002 08:34


All times are GMT -4. The time now is 03:33.