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

ERROR in compiling UDF

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

Like Tree1Likes
  • 1 Post By stefanos

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2012, 06:56
Default ERROR in compiling UDF
  #1
New Member
 
Stefanos Katifeoglou
Join Date: Oct 2011
Location: Athens, Greece
Posts: 19
Rep Power: 15
stefanos is on a distinguished road
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.
stefanos is offline   Reply With Quote

Old   April 25, 2012, 08:37
Default issue resolved-mission accomplished.
  #2
New Member
 
Stefanos Katifeoglou
Join Date: Oct 2011
Location: Athens, Greece
Posts: 19
Rep Power: 15
stefanos is on a distinguished road
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
apohar likes this.
stefanos is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


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


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