|
[Sponsors] |
|
September 3, 2004, 04:42 |
Compiling udf !!!
|
#1 |
Guest
Posts: n/a
|
Hi Fluent users
I'm trying to compile a udf, I have made "libudf" in ntx86,changed makefile_nt to makefile, done set environment in fluent, execute "vcvars32.bat" in command prompt. But when I load the made file this message appears: Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. Error Object: () If some one can solve this problem that would be greate. thanks and regards. |
|
September 3, 2004, 07:57 |
Re: Compiling udf !!!
|
#2 |
Guest
Posts: n/a
|
Hi there. I am also working with compiled UDFs, but it seems to work in a different way for me. I have written the codes in C (if using C++ remember to change the extension cpp to c). I saved them in my working directory and then recalled them form the compiled UDF panel: click "add" and that opens an explorer window where you can select your files. Then I enter a name for the libudf (in case you want a different one) and then click on "build". In my case Fluent creates the directories required to compile the source files. Finally I click on "load" and the UDF files are ready to be used. This seems to work in my case (Fluent 6.2 for Windows), hope that it helps. Regards. Fernando.
|
|
September 3, 2004, 09:37 |
Re: Compiling udf !!!
|
#3 |
Guest
Posts: n/a
|
Did you compile the UDF in a C/C++ compiler? I had this trouble once, but I don't know if it realates to your problem. I had a friend compile my UDF and then he sent me the .lib and .dll files. At first I only included the .lib file in my libudf folder and got the error you have, but once I included the .dll file it worked. I don't know if this will help or not.
|
|
September 3, 2004, 10:13 |
Re: Compiling udf !!!
|
#4 |
Guest
Posts: n/a
|
I use fluent 6.1.18 and vc++ 6. I don't know what are .dll and .lib, could you please explane more? thank you.
|
|
September 7, 2004, 11:46 |
Re: Compiling udf !!!
|
#5 |
Guest
Posts: n/a
|
The "filename".dll is the dynamic library and "filename".lib is the library file. They are created when you compile your C program.
|
|
September 7, 2004, 13:42 |
Re: Compiling udf !!!
|
#6 |
Guest
Posts: n/a
|
Thank you Tang,
I reinstalled VC++, and now there is no problem in compiling. Thanks and regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About UDF compiling issues: 'nmake' | Haoyin Shan | Fluent UDF and Scheme Programming | 15 | November 4, 2019 18:05 |
Compiling UDF on a cluster | Adya | FLUENT | 1 | December 14, 2009 11:30 |
UDF compiling problem in Flient 6.3 | jeevan kumar | FLUENT | 2 | February 25, 2009 00:43 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 07:14 |
On Compiling a UDF | David Chabot | FLUENT | 5 | May 20, 2005 09:13 |