|
[Sponsors] |
April 24, 2012, 06:56 |
ERROR in compiling UDF
|
#1 |
New Member
Stefanos Katifeoglou
Join Date: Oct 2011
Location: Athens, Greece
Posts: 19
Rep Power: 15 |
Dear community
I have been attempting, for some time, to simulate flow over oscillating cylinder with Fluent 13.0.0 via ANSYS Workbench 13.0 by using the DEFINE_CG_MOTION udf. The compiler installed is MSVS 2008 and i am running Fluent via the MSNET.FRAMEWORK SDK v2.0 command prompt. I have already applied most of the guidelines regarding the appropriate environmental settings given in this forum as well as several ANSYS FLUENT guides and tutorials and private suggestions by members. However, i still have to face a remaining compilation error: "plung.obj : error LNK2019: unresolved external symbol __imp__Data_Valid_P referenced in function _plung libudf.dll : fatal error LNK1120: 1 unresolved externals". According to user coolengineer (Any expert in udf writing here?) this error is due to incorrect definition of command variables within the c code that cannot be recognized in the header file. However, as i cross-checked with the on-line ANSYS UDF Guide (regarding Fluent 10), the c code does not include any errors and all command variables should be recognized in the header file. On the contrary, i searched within the header file for some "Data_Valid" statement but i didn't find it. I would like to ask whether there is a suggestion for overcoming this "LNK2109: unresolved external symbol" error. Regards, Stefanos UPDATE: 4/25/2012 I saved the file with .cpp extension and after that it seemed to have succesfully been compiled. However, again it couldn't be loaded and an error message dialog window popped up: The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64). The system cannot find the file specified. C:\osccyl\libudf\win64\2ddp\libudf.dll" So i would like to ask if i have to face again an environmental issue? Last edited by stefanos; April 25, 2012 at 06:08. |
|
April 25, 2012, 08:37 |
issue resolved-mission accomplished.
|
#2 |
New Member
Stefanos Katifeoglou
Join Date: Oct 2011
Location: Athens, Greece
Posts: 19
Rep Power: 15 |
Finally, after todays search i came across this thread:
http://www.cfd-online.com/Forums/flu...ng-libudf.html After all of my attempts (installing-uninstalling-reinstalling...) i believe it is the state of the art for all win 7 (64) users and for Fluent versions 12 and more recent, thanks to user laurentB Everything is working fine now. Please, ignore my previous statements. Just install all recommended components and just use a *.c source code (*.cpp isn't necessary) Regards Stefanos |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |