|
[Sponsors] |
UDF giving warning, although used stdio.h header file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 3, 2009, 01:14 |
UDF giving warning, although used stdio.h header file
|
#1 |
Member
jeevan kumar
Join Date: Mar 2009
Posts: 88
Rep Power: 17 |
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 |
|
April 6, 2009, 03:49 |
|
#2 |
Member
jeevan kumar
Join Date: Mar 2009
Posts: 88
Rep Power: 17 |
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 |
|
November 18, 2009, 00:08 |
|
#3 |
New Member
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 16 |
||
November 23, 2009, 11:35 |
|
#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 |
|
November 24, 2009, 00:18 |
|
#5 |
New Member
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 16 |
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.
|
|
November 11, 2011, 00:26 |
|
#6 |
New Member
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 14 |
Hi everybody,
I have same problem. how did you solve it? thanx, bye |
|
June 18, 2012, 08:57 |
|
#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) 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? |
|
December 31, 2019, 09:06 |
|
#8 |
New Member
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 16 |
This might be strange! but I did it on a laptop instead of a PC and it worked!!!!
|
|
|
|
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 |