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

On Compiling a UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2005, 11:44
Default On Compiling a UDF
  #1
David Chabot
Guest
 
Posts: n/a
Hi, I am having difficulty compiling a UDF that was working fine when interpreted. I would be greatful for some help in solving this problem.

I take the following steps: i)Place case file, 1 source file and 1 header file in the same directory. ii) I use the UDF panel. I Add my source file and header file in the proper panels and then click on build. This is were it gets complicated..

I get the following message:

Make sure that UDF source files are in the directory that contains your case and data files. If you have an existing libudf directory, please remove this directory

to ensure that the latest files are used. 1 file(s) copied.

1 file(s) copied. (system "move user_nt.udf libudf\ntx86\2d")0 (system "copy C:\FLUENT.INC\fluent6.1.22\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2d")() '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. Done. Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. Error Object: ()

Relating to this I have A few questions. 1) I have MS VC++ but cannot compile my udf using this program. I get an error message. Is it possbile that my error is due to this. If so, How to be able to compile my udf using MS C++? 2) I read somwhere that one can set the MS VC++ environement variables by running Vcvar32.bat in a command prompt. Does this need to be done each time I open Fluent? 3) I find that Fluent user guide is not clear enough on explaining where to place files that will constitute the library. Should I create folder libudf and put the proper files there?

Thanks in advance
  Reply With Quote

Old   May 16, 2005, 18:20
Default Re: On Compiling a UDF
  #2
pUl|
Guest
 
Posts: n/a
'nmake' is not recognized as an internal or external command

There you go. Check your installation, environment variables etc from the FAQ:

http://www.fluentusers.com/support/i.../udfguides.htm
  Reply With Quote

Old   May 17, 2005, 09:27
Default Re: On Compiling a UDF
  #3
david
Guest
 
Posts: n/a
Thanks for the quick response.
  Reply With Quote

Old   May 19, 2005, 11:46
Default Re: On Compiling a UDF
  #4
David Chabot
Guest
 
Posts: n/a
Hi PUI, I tried to set up the Visual C++ environment variables as described in the following link:

http://www.fluentusers.com/support/i.../udfguides.htm

After having set the variables, I typed cl in a command prompt window. Ok. I get a similar message but the version of the compiler is slightly different (Compiler Version 12.00.8186 instead of 12.00.8804.)

When I type link/version in a new prompt window I unfortunately do not get what I should. I get the following:

Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. LINK : fatal error LNK146: no argument specified with option "/version"

Note that the linker version is not the one suggested by Fluent. I downloaded Microsoft Visual Studio 6 full version of Service Pack 6 and installed it so I'm surprised to see that the versions (both for compiler and linker) differ from what is suggested on the Fluent website.

Any suggestions? Let me know if you'd like to see the log file generated by FLuent when attempting to build the library. Many thanks David

  Reply With Quote

Old   May 19, 2005, 15:27
Default Re: On Compiling a UDF
  #5
pUl|
Guest
 
Posts: n/a
yes, the log file please.
  Reply With Quote

Old   May 20, 2005, 09:13
Default Re: On Compiling a UDF
  #6
David Chabot
Guest
 
Posts: n/a
HI PU1l, It appears that my problem was that I had a syntax error in my interpreted code itself (although I could use it with no problem). When compiling, this syntax error was picked up. That was causing this problem.

Thanks for your time Regards, David
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling udf at window Nt(64BIT) noa FLUENT 3 July 29, 2014 23:01
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 7 January 2, 2013 11:49
Compiling UDF on a cluster Adya FLUENT 1 December 14, 2009 12:30
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
udf compiling problem akr FLUENT 3 August 22, 2007 07:14


All times are GMT -4. The time now is 13:59.