ERROR in compiling UDF
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.
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.
So i would like to ask if i have to face again an environmental issue?
issue resolved-mission accomplished.
Finally, after todays search i came across this thread:
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)
|All times are GMT -4. The time now is 11:10.|