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

UDF error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2007, 11:39
Default UDF error
  #1
Eduardo
Guest
 
Posts: n/a
Hello I have a code same as described in UDF real gas for Redlich-Kwong equation. When compiling it in luet 6.3.26 ir gives the following errors: Welcome to Fluent 6.3.26

Copyright 2006 Fluent Inc.

All Rights Reserved

Loading "c:\fluent.inc\fluent6.3.26\lib\fl_s1119.dmp" Done.

> 1 file(s) copied. (system "copy c:\fluent.inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile")

1 file(s) copied. (chdir "libudf")() (chdir "ntx86\2ddp")() realgas.c c:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: 'stdout' : macro redefinition

C:\Program Files\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:\Program Files\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:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(159) : see previous definition of 'stdin' ..\..\src\realgas.c(48) : warning C4005: 'T_REF' : macro redefinition

c:\fluent.inc\fluent6.3.26\src\prop.h(116) : see previous definition of 'T_REF' ..\..\src\realgas.c(94) : warning C4133: '=' : incompatible types - from 'void (*)(char *,...)' to 'int (*)(char *,...)' ..\..\src\realgas.c(390) : warning C4028: formal parameter 3 different from declaration # Generating udf_names.c because of makefile realgas.obj udf_names.c c:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: 'stdout' : macro redefinition

C:\Program Files\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:\Program Files\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:\Program Files\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 realgas.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.

Does any one knows what is the source of the error and how to fix it? Many thanks REgards EDUARDO
  Reply With Quote

Old   December 19, 2007, 04:25
Default Re: UDF error
  #2
jiang
Guest
 
Posts: n/a
If you write the code in the form of user define function? When you install the visual c++,if you had set the environment variable?
  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
Problem with UDF compiling for kTkLW model Wantami FLUENT 0 July 18, 2011 05:11
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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