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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2013, 20:53
Default UDF compiling problem
  #1
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 13
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

Old   March 13, 2013, 21:49
Default
  #2
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 13
vagaikwa is on a distinguished road
im concerned with the warning though.
I have figured out the syntax error.
vagaikwa is offline   Reply With Quote

Old   March 14, 2013, 00:36
Default
  #3
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
This error means your compiler is setup correctly.
msaeedsadeghi is offline   Reply With Quote

Old   March 14, 2013, 01:11
Default
  #4
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
What warning?
stuart23 is offline   Reply With Quote

Old   March 14, 2013, 01:17
Default
  #5
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
Quote:
Originally Posted by stuart23 View Post
What warning?
All the error on the first post.
msaeedsadeghi is offline   Reply With Quote

Old   March 14, 2013, 01:25
Default
  #6
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Oh, I see them now.

Saeed is correct, they are nothing to worry about, just redirecting terminal control to Fluent
stuart23 is offline   Reply With Quote

Old   March 15, 2013, 08:33
Default
  #7
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 13
vagaikwa is on a distinguished road
Thank you guys for your replies.
vagaikwa is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 21:33.