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

UDF compiling problem

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 13, 2013, 20:53
Default UDF compiling problem
  #1
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 14
vagaikwa is on a distinguished road
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 is offline   Reply With Quote

 


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
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 15 November 4, 2019 18:05
A problem about 'printf' and 'Message' in UDF. LICH Fluent UDF and Scheme Programming 2 May 2, 2013 02:45
what's the problem with my udf zzyan FLUENT 0 November 4, 2010 03:56
HELP! Problem compiling UDF function Syrakus FLUENT 6 April 7, 2006 10:48
UDF compiling problem for 3D simulation Marijo FLUENT 1 March 28, 2006 03:21


All times are GMT -4. The time now is 12:16.