|
[Sponsors] |
February 3, 2011, 09:11 |
compiling my Udf
|
#1 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
I am working on windows NT 6.1 (64bit) at Ansys 13. I can't compile my udf
1. I followed the following instructions: How can I manage to compile my UDF with Windows 7 64bit? How can I manage to compile my UDF with Windows 7 64bit?
2. I verified the path is right and changed it to: Microsoft Visual Studio 9.0 and to v 130. 3. I could start Fluent from the SDK prompt. 4. When I compiled the c file, there were no errors. 5. When I loaded the file I got the following message > 1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "win64\2d")() # Generating ud_io1.h Done. Opening library "D:\sarit\tut6_files\dp0\FFF\Fluent\libudf"... Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (win64). The system cannot find the file specified. D:\sarit ut6_files\dp0\FFF\Fluent\libudf\win64\2d\libudf.dl l Error Object: #f What to do? |
|
February 3, 2011, 10:15 |
|
#2 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
With Visual Studio 2008 Pro if you start Fluent from the Visual Studio command prompt it works. I've tested this on Windows 7 64 bits.
|
|
February 3, 2011, 10:35 |
compiling udf
|
#3 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
When I do it, I get:
Deleted old libudf\win64\2d\libudf.dll 1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "win64\2d")() # Generating ud_io1.h unsteady_4.c # Generating udf_names.c because of makefile unsteady_4.obj udf_names.c # Linking libudf.dll because of makefile user_nt.udf udf_names.obj unsteady_4.obj Microsoft (R) Incremental Linker Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. LINK : fatal error LNK1104: cannot open file 'kernel32.lib' Done. |
|
February 4, 2011, 00:42 |
|
#4 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
Can someone please look at this problem?
|
|
February 19, 2011, 05:27 |
|
#5 |
Member
s Kumar
Join Date: Jul 2009
Posts: 50
Rep Power: 17 |
Hi...
It happened for me...spend lots of sleepless nights.... found very simple solution (accidently, of-course as I am a novice). Build the udf after that copy the source .c file and put it in newly (fluent) created folder called 'src'. Now again build, now you can see the whole code compiled and then you can load! |
|
April 26, 2011, 03:06 |
|
#6 |
New Member
mohsen cheraghi
Join Date: Jun 2010
Location: Switzerland
Posts: 28
Rep Power: 16 |
Great..... Thanks.
|
|
November 2, 2012, 07:52 |
|
#7 | |
Member
Vidit Sharma
Join Date: Aug 2012
Location: Delhi, India
Posts: 32
Rep Power: 14 |
Quote:
I have tried what u told but it didnt worked for me. Can u plz explain?? I really need to run this udf. Regards |
||
April 9, 2016, 14:47 |
|
#8 |
New Member
Abhay Rana
Join Date: Mar 2016
Posts: 6
Rep Power: 10 |
did u find a relevant solution..would you please mind sharing it.
|
|
November 7, 2018, 21:08 |
unload before reload any revision code
|
#9 |
New Member
Tien
Join Date: Dec 2015
Posts: 1
Rep Power: 0 |
Hi.
I found the solution for error LNK1104: cannot open file 'libudf.dll'. I think it would be the same with other library. I only use Fluent to test the UDF code so the error came out when I recompiled my revised code. The solution is in the management of UDF, we should unload the library before we compile the new code and reload. otherwise Fluent compiler cannot access to the loaded library. hope this help! |
|
|
|
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 19:05 |
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 08:14 |
On Compiling a UDF | David Chabot | FLUENT | 5 | May 20, 2005 10:13 |