CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   udf compilation problem (

co2 April 15, 2004 12:09

udf compilation problem
I got the following error while compiling my udf. The same udf had compiled fine on another machine. But on the ME lab machines, it is not compiling. WHY IS THAT ?

- Charu

1 file(s) copied. (system "move user_nt.udf libudf\ntx86\3d")0 (system "copy C:\FLUENT.INC\fluent6.1\src\makefile_nt.udf libudf\ntx86\3d\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\3d")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file.


Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified.

Error Object: ()

ap April 15, 2004 17:57

Re: udf compilation problem
The message

'nmake' is not recognized as an internal or external command, operable program or batch file.

tells you that you do not have the Microsoft Visual C++ compiler installed, or it's directory is not in your system PATH.

Hi :)


Karthick April 16, 2004 01:35

Re: udf compilation problem
Hello ap,

Even I am facing the same problem. Can u tell me how we can specify the path to Visual studio?

Regards Karthick

Ajay April 16, 2004 17:32

Re: udf compilation problem
Try this You need to follow the following steps 1) set up the environmental variable This is done by going to the start menu > Programs>Fluent> Set_environment clicking this would set the path and variable. 2) set up a directory structure as follows create a dir libudf in that create "src" and "ntx86". 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 11) This will compile ur code and build a lib if u dont have any errors , if errors are present it will say so u need to debug it then. 12) once this is done u can open fluent again and load the lib u have just created , in this case it would be libudf.


ap April 16, 2004 17:34

Re: udf compilation problem
I don't know it. I don't use Visual Studio anymore because I'm now on a linux platform.

However the path to the compiler is set during Visual Studio setup, if you accept to set system variables.

Hi :)


All times are GMT -4. The time now is 17:13.