|
[Sponsors] |
October 2, 2017, 11:55 |
udf not compiling
|
#1 |
New Member
Join Date: Mar 2015
Posts: 28
Rep Power: 11 |
hello guys,
i am trying to simulate missile silo launch in fluent and i get errors while trying to compile the udf, i used both 6.3.26 and fluent 18 64bits. this is the error for 6.3.26 and sth similar in v18 Deleted old libudf\ntx86\2ddp\libudf.dll 1 file(s) copied. (system "copy c:\fluent.inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\2ddp")() silo.c c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2143: syntax error : missing '{' before ':' c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2059: syntax error : ':' c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2061: syntax error : identifier 'CX_DLL_GetProc' c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : ';' c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : 'type' i used my v18 to compile other udfs and it works fine so i think its not a vs issue. anybody can help me? thanks a lot here is the udf http://cae-club.ru/sites/default/fil...es/2322/silo.c |
|
October 3, 2017, 06:31 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
The indicated problem is in not in your UDF but in the code included with Fluent. So this suggests it is a configuration issue.
|
|
October 3, 2017, 12:00 |
|
#3 |
New Member
Join Date: Mar 2015
Posts: 28
Rep Power: 11 |
||
January 15, 2018, 22:54 |
|
#4 |
New Member
sajjad ghahari
Join Date: Sep 2016
Posts: 4
Rep Power: 10 |
||
January 16, 2018, 11:00 |
|
#5 |
New Member
Join Date: Mar 2015
Posts: 28
Rep Power: 11 |
i think you should use a 32bit windows&fluent,although i did not try anymore.
|
|
January 23, 2018, 14:12 |
|
#6 |
New Member
Wael
Join Date: Jan 2018
Location: Manchester
Posts: 3
Rep Power: 8 |
Hi
I don't know a lot about udf. However, I know that for compiling a udf, you should have Microsoft visual studio installed on your computer (complete setup). you can check the appropriate version of visual studio according to your fluent version. I mean, for fluent 16 and 17.1, visual studio 2012 works with me. May be earlier versions of visual studio work with earlier fluent versions as visual studio 2008 and 2010 |
|
January 25, 2018, 11:52 |
32 bit or 64 bit
|
#7 |
New Member
mengtangli
Join Date: Dec 2017
Location: TN
Posts: 5
Rep Power: 9 |
ntx86 means 32 bit. But you are using a 64 bit machine. Make sure you use the correct compiler.
|
|
January 25, 2018, 11:56 |
suggestion
|
#8 |
New Member
mengtangli
Join Date: Dec 2017
Location: TN
Posts: 5
Rep Power: 9 |
I guess if it were me, i would install Fluent 180+ and Visual Studio 2017. Use x64 VS2017 cross tool command prompt to open Fluent (remember set your path correctly), which will compile your UDF correctly.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent udf error while compiling: unknown type name __locale_t | aditya.pandare | Fluent UDF and Scheme Programming | 3 | April 12, 2014 15:52 |
ERROR in compiling UDF | stefanos | Fluent UDF and Scheme Programming | 1 | April 25, 2012 08:37 |
Problem with compiling the UDF | raghu mohan | Fluent UDF and Scheme Programming | 10 | December 17, 2011 00:34 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
On Compiling a UDF | David Chabot | FLUENT | 5 | May 20, 2005 10:13 |