|
[Sponsors] |
UDF giving warning, although used stdio.h header file |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
jeevan kumar
Join Date: Mar 2009
Posts: 88
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
jeevan kumar
Join Date: Mar 2009
Posts: 88
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 17 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Akour
Join Date: May 2009
Posts: 79
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 17 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15 ![]() |
Hi everybody,
I have same problem. how did you solve it? thanx, bye |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
George Pichurov
Join Date: Jul 2010
Posts: 52
Rep Power: 16 ![]() |
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) ![]() Which (ANSYS)Fluent versions support Win 7? Not just running fluent, but also compiling? |
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 17 ![]() |
This might be strange! but I did it on a laptop instead of a PC and it worked!!!!
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |