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

UDF giving warning, although used stdio.h header file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2009, 01:14
Default UDF giving warning, although used stdio.h header file
  #1
Member
 
jeevan kumar
Join Date: Mar 2009
Posts: 88
Rep Power: 17
jeevankumarb is on a distinguished road
Dear all

i am trying to build the udf in fluent 6.3. but when i build the warnings are displayed and even though there are no errors displayed. i am pasting the message


yap-3.c
c:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: 'stdout' : macro redefinition
C:\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(160) : see previous definition of 'stdout'
c:\fluent.inc\fluent6.3.26\src\machine.h(115) : warning C4005: 'stderr' : macro redefinition
C:\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(161) : see previous definition of 'stderr'
c:\fluent.inc\fluent6.3.26\src\machine.h(116) : warning C4005: 'stdin' : macro redefinition
C:\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(159) : see previous definition of 'stdin'
# Generating udf_names.c because of makefile yap-3.obj
udf_names.c
c:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: 'stdout' : macro redefinition
C:\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(160) : see previous definition of 'stdout'
c:\fluent.inc\fluent6.3.26\src\machine.h(115) : warning C4005: 'stderr' : macro redefinition
C:\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(161) : see previous definition of 'stderr'
c:\fluent.inc\fluent6.3.26\src\machine.h(116) : warning C4005: 'stdin' : macro redefinition
C:\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(159) : see previous definition of 'stdin'
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj yap-3.obj
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library libudf.lib and object libudf.exp

Done.
"c:/documents and settings/administrator/desktop/yap"

Opening library "libudf-EB"...
Library "libudf-EB\win64\2ddp\libudf.dll" opened
tur_yap

even i included stdio.h hedderfile.

But it is working fine in my friends system who use Novell Suse Linux
OS on a Dell PowerEdge SC1435 (dual Opteron 64

i use 64 bit windows OS and has MS visual studio 2005 installed
what can be the problem ?
is the visual studio not properly installed ?
or any other problem
please can any one help me.

wating for reply

thank you and regards
jeevan kumar
jeevankumarb is offline   Reply With Quote

Old   April 6, 2009, 03:49
Default
  #2
Member
 
jeevan kumar
Join Date: Mar 2009
Posts: 88
Rep Power: 17
jeevankumarb is on a distinguished road
Dear All

i was able to solve the problem.

the warning mess was coming since in the header file of machine.h in the scr folder of fluent, the
#define stdout
#define stderr
#define stdin
were redifined.
so i made them as comments in the machine.h
then the warning message was not coming.
and udf ware build and loaded properly.

Thank you and regards
jeevan kumar b
jeevankumarb is offline   Reply With Quote

Old   November 18, 2009, 00:08
Default
  #3
New Member
 
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 16
sabbasi_mr is on a distinguished road
hi jeevankumarb
I have the same problem
can you write what did you do ??
thanks in advance..
sabbasi_mr is offline   Reply With Quote

Old   November 23, 2009, 11:35
Default
  #4
Member
 
Akour
Join Date: May 2009
Posts: 79
Rep Power: 17
ak6g08 is on a distinguished road
if you have a look in the fluent udf manual you will see that these warnings are completely normal for a windows system...they wont affect your UDF results in any way...
__________________
akour
ak6g08 is offline   Reply With Quote

Old   November 24, 2009, 00:18
Default
  #5
New Member
 
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 16
sabbasi_mr is on a distinguished road
Thanks. But I think it does! Because I can't run the model and Libudf is not complete. My .c file is correct and responses in other computers.
sabbasi_mr is offline   Reply With Quote

Old   November 11, 2011, 00:26
Default
  #6
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 14
massoudepsilon is on a distinguished road
Hi everybody,

I have same problem. how did you solve it?

thanx,

bye
massoudepsilon is offline   Reply With Quote

Old   June 18, 2012, 08:57
Default
  #7
Member
 
George Pichurov
Join Date: Jul 2010
Posts: 52
Rep Power: 15
jorkolino is on a distinguished road
Hi there,

Can you compile without trouble for Fluent 6.3 on Windows 7-64bit? My compilation behaves weird regardless of what compiler I use (MS VS6.0, VS2010, even VS2008) Either DLL error with VS6.0, or case file crashes and exits when compiling with VS2010. The same codes of mine work perfect on XP with VS6.0.

Which (ANSYS)Fluent versions support Win 7? Not just running fluent, but also compiling?
jorkolino is offline   Reply With Quote

Old   December 31, 2019, 09:06
Default
  #8
New Member
 
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 16
sabbasi_mr is on a distinguished road
This might be strange! but I did it on a laptop instead of a PC and it worked!!!!
sabbasi_mr is offline   Reply With Quote

Reply


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
How to use setField to create sphere sega OpenFOAM Pre-Processing 38 January 13, 2022 00:39
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 15:49
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


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