CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Compiling (https://www.cfd-online.com/Forums/fluent/30415-compiling.html)

MON October 20, 2002 20:48

Compiling
 
Hello dear Fluent Users,

I am a new user of Fluent and I would like to compile a UDF (Define source (Source.Cpp)) in fluent 6.i use Microsoft Windows NT 4.after doing the steps for Building Compiled Windows UDFs using Microsoft Visual C++ 6.0( link http://www.fluent.com/support/instal...q/udfguide.htm) When i compile the UDF,i run nmake this the error message ************************ *********************** ension used : formal parameter 'port' was previously defined as a type f:\fluent.inc\fluent6.0\cortex\src\sprim.h(220) : warning C4224: nonstandard ext ension used : formal parameter 'obj' was previously defined as a type f:\fluent.inc\fluent6.0\cortex\src\sprim.h(230) : warning C4224: nonstandard ext ension used : formal parameter 'port' was previously defined as a type # Generating udf_names.c because of Source.Cpp

cl /c /Za -If:\fluent.inc\fluent6.0\ntx86\3ddp -If:\fluent.inc\fluent6. 0\src -If:\fluent.inc\fluent6.0\cortex\src -If:\fluent.inc\fluent6.0\client\sr c -If:\fluent.inc\fluent6.0\tgrid\src -If:\fluent.inc\fluent6.0\multiport\src udf_names.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

udf_names.c # Linking libudf.dll because of makefile user_nt.udf udf_names.obj Source.Cpp

link /Libpath:f:\fluent.inc\fluent6.0\ntx86\3ddp /dll /debug /out:libu df.dll udf_names.obj Source.Cpp fl6012s.lib Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

******** LINK : fatal error LNK1104: cannot open file "Source.Cpp" NMAKE : fatal error U1077: 'link' : return code '0x450' Stop. ************************************************** **** ************************************************** ****

My UDF is worked with interpred mode.but with compiling mode i found the error Thnak you for your help


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