CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF compiling problem (http://www.cfd-online.com/Forums/fluent-udf/114605-udf-compiling-problem.html)

vagaikwa March 13, 2013 21:53

UDF compiling problem
 
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.

vagaikwa March 13, 2013 22:49

im concerned with the warning though.
I have figured out the syntax error.

msaeedsadeghi March 14, 2013 01:36

This error means your compiler is setup correctly.

stuart23 March 14, 2013 02:11

What warning?

msaeedsadeghi March 14, 2013 02:17

Quote:

Originally Posted by stuart23 (Post 413855)
What warning?

All the error on the first post.

stuart23 March 14, 2013 02:25

Oh, I see them now.

Saeed is correct, they are nothing to worry about, just redirecting terminal control to Fluent

vagaikwa March 15, 2013 09:33

Thank you guys for your replies.


All times are GMT -4. The time now is 23:56.