|
[Sponsors] |
May 13, 2004, 04:41 |
udf compile problem
|
#1 |
Guest
Posts: n/a
|
this my step: 1.set up a directory structure as follows create a dir libudf in that create "src" and "ntx86". 2.In ntx86 create "3d".( am asuming that ur simulation is 3d) 3) copy the udf (.C file) and the required header( u can get the header files frm c:\FLUENT.INC\fluent6.*.*\ntx86\src) files into the "src" folder. 4) go to c:\FLUENT.INC\fluent6.*.*\ntx86\3d copy the contents into the 3d folder which you created. 5) go to c:\FLUENT.INC\fluent6.*.*\ntx86\src copy makefile_nt.udf and user_nt.udf to your 3d folder 6) rename makefile_nt.edf to makefile and open user_nt.udf and read the instructions and do accordingly. 7) close FLUENT . Open command prompt ( start > accessories > command prompt ) type the following C:\ CD program Files \ microsoft visual studio .net\vc7\bin 8) type :- vcvars32 9)go to the libudf\ntx86\3d which u have created 10) type nmake then occure such errors: C:\FLUENT.INC\libudf\ntx86\2d>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl /c /Za -Ic:\fluent.inc\fluent6.0\ntx86\2d -Ic:\fluent.inc\fluent6.0\ src -Ic:\fluent.inc\fluent6.0\cortex\src -Ic:\fluent.inc\fluent6.0\client\src -Ic:\fluent.inc\fluent6.0\tgrid\src -Ic:\fluent.inc\fluent6.0\multiport\src . .\..\src\inlet.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. inlet.c # Generating udf_names.c because of makefile inlet.obj cl /c /Za -Ic:\fluent.inc\fluent6.0\ntx86\2d -Ic:\fluent.inc\fluent6.0\ src -Ic:\fluent.inc\fluent6.0\cortex\src -Ic:\fluent.inc\fluent6.0\client\src -Ic:\fluent.inc\fluent6.0\tgrid\src -Ic:\fluent.inc\fluent6.0\multiport\src u df_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 udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0 NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Compiled UDF problem 4 Wave tank tutorial | Shane | FLUENT | 1 | September 3, 2010 03:32 |
udf compile in parallel system | tahereh | FLUENT | 1 | December 9, 2008 10:48 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |
Problem in compiling property(density) UDF | satish2968 | FLUENT | 3 | October 31, 2008 16:06 |
compile the UDF | Li Jingping | FLUENT | 2 | April 14, 2003 22:18 |