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

errors while compiling udf

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2019, 05:50
Unhappy errors while compiling udf
  #1
New Member
 
Shakib
Join Date: Mar 2019
Posts: 10
Rep Power: 4
shakib is on a distinguished road
Hi every one
I have several errors while compiling udf
I work with Visual Studio 2017 and ansys fluent 17 on Windows 10;
first: when I build libudf, in the win64\3ddp folder and after doing nmake with cross x64 tools command prompt, it cant make libudf.dll so while loading udf there will be an error as shown below in the attached picture.
Therefore when I copy it my self in the folder mentioned, an error named error code: 126 will appear.

now I'm confused.

Thank you in advance.
Attached Images
File Type: jpg Screenshot (715).jpg (110.4 KB, 21 views)
shakib is offline   Reply With Quote

Old   May 9, 2019, 00:26
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,778
Rep Power: 28
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
https://www.cfd-online.com/Wiki/Flue...UDF.29_Related

best regards
AlexanderZ is offline   Reply With Quote

Old   May 11, 2019, 00:56
Thumbs up
  #3
New Member
 
Shakib
Join Date: Mar 2019
Posts: 10
Rep Power: 4
shakib is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Thanks alot it was very helpfull.
My problem was solved with the below procedure:
libudf.dll error in my case was Because the lack of "register environment variable" so it was solved by using "x64-x86 cross tools command prompt for vs2017" then changing the address to "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build" then type:vcvars64.bat and enter so it will change to x64, then you have to type the destination folder that your .cas & .dat & udf exists (in the other words the folder that contains your library like libudf) then making "nmake" like this: C:\users\user_name\work_dir\libudf\win64\3ddp>nmak e. now you can load your libudf and you can see the problem is solved

Last edited by shakib; May 13, 2019 at 01:59.
shakib is offline   Reply With Quote

Reply

Tags
udf compile

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
LINK errors compiling udf marco91 Fluent UDF and Scheme Programming 0 December 5, 2018 06:13
UDF - compiling errors Tscar FLUENT 1 March 21, 2018 22:24
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Errors when Compiling UDF: error C2040/error C2099 Julian K. FLUENT 1 December 21, 2008 00:23
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 20:44.