|
[Sponsors] |
May 8, 2019, 06:50 |
errors while compiling udf
|
#1 |
New Member
Shakib
Join Date: Mar 2019
Posts: 10
Rep Power: 7 |
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. |
|
May 9, 2019, 01:26 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
||
May 11, 2019, 01:56 |
|
#3 | |
New Member
Shakib
Join Date: Mar 2019
Posts: 10
Rep Power: 7 |
Quote:
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 02:59. |
||
Tags |
udf compile |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LINK errors compiling udf | marco91 | Fluent UDF and Scheme Programming | 0 | December 5, 2018 07:13 |
UDF - compiling errors | Tscar | FLUENT | 1 | March 21, 2018 23:24 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
Errors when Compiling UDF: error C2040/error C2099 | Julian K. | FLUENT | 1 | December 21, 2008 01:23 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |