|
[Sponsors] |
March 13, 2013, 21:53 |
UDF compiling problem
|
#1 |
Member
Join Date: Apr 2012
Posts: 48
Rep Power: 14 |
HI,
I am running Fluent using Windows 7. I use to get nmake error when I use to compile my UDF. Then I read a post saying I need to install Visual STudio and SDK for the same. So now I have Visual Studio 2010 And SDK 7.1. I run my fluent through SDK cmd prompt. And now Im getting this error Deleted old libudf\win64\2d\libudf.dll 1 file(s) copied. (system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\win64\2d\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "win64\2d")() udfcg_win.c c:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: 'stdout' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(158) : see previous definition of 'stdout' c:\fluent.inc\fluent6.3.26\src\machine.h(115) : warning C4005: 'stderr' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(159) : see previous definition of 'stderr' c:\fluent.inc\fluent6.3.26\src\machine.h(116) : warning C4005: 'stdin' : macro redefinition C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(157) : see previous definition of 'stdin' ..\..\src\udfcg_win.c(19) : error C2449: found '{' at file scope (missing function header?) ..\..\src\udfcg_win.c(24) : error C2059: syntax error : '}' ..\..\src\udfcg_win.c(28) : error C2143: syntax error : missing '{' before '+=' ..\..\src\udfcg_win.c(28) : error C2059: syntax error : '+=' ..\..\src\udfcg_win.c(29) : error C2143: syntax error : missing ')' before 'string' ..\..\src\udfcg_win.c(29) : error C2143: syntax error : missing '{' before 'string' ..\..\src\udfcg_win.c(29) : error C2059: syntax error : '<Unknown>' ..\..\src\udfcg_win.c(30) : error C2059: syntax error : ')' ..\..\src\udfcg_win.c(32) : error C2466: cannot allocate an array of constant size 0 ..\..\src\udfcg_win.c(32) : error C2099: initializer is not a constant ..\..\src\udfcg_win.c(33) : error C2059: syntax error : '}' Can someone please help. Thanks. |
|
March 13, 2013, 22:49 |
|
#2 |
Member
Join Date: Apr 2012
Posts: 48
Rep Power: 14 |
im concerned with the warning though.
I have figured out the syntax error. |
|
March 14, 2013, 01:36 |
|
#3 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
This error means your compiler is setup correctly.
|
|
March 14, 2013, 02:11 |
|
#4 |
Senior Member
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26 |
What warning?
|
|
March 14, 2013, 02:17 |
|
#5 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
||
March 14, 2013, 02:25 |
|
#6 |
Senior Member
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 26 |
Oh, I see them now.
Saeed is correct, they are nothing to worry about, just redirecting terminal control to Fluent |
|
March 15, 2013, 09:33 |
|
#7 |
Member
Join Date: Apr 2012
Posts: 48
Rep Power: 14 |
Thank you guys for your replies.
|
|
|
|
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 |
A problem about 'printf' and 'Message' in UDF. | LICH | Fluent UDF and Scheme Programming | 2 | May 2, 2013 03:45 |
what's the problem with my udf | zzyan | FLUENT | 0 | November 4, 2010 04:56 |
HELP! Problem compiling UDF function | Syrakus | FLUENT | 6 | April 7, 2006 11:48 |
UDF compiling problem for 3D simulation | Marijo | FLUENT | 1 | March 28, 2006 04:21 |