CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Compilation error (http://www.cfd-online.com/Forums/fluent/33478-compilation-error.html)

Karthick April 15, 2004 02:25

Compilation error
 
Hello all

I am getting the following error while compiling my udf in Fluent 6.1. My udf file is in the same directory as the case and data files.

Make sure that UDF source files are in the directory that contains your case and data files. If you have an existing dum directory, please remove this directory to ensure that the latest files are used.The system cannot find the file specified.

1 file(s) copied. (system "move user_nt.udf dum\ntx86\3ddp")0 (system "copy C:\fluent.inc\fluent6.1\src\makefile_nt.udf dum\ntx86\3ddp\makefile") 1 file(s) copied. 0 (chdir "dum")() (chdir "ntx86\3ddp")() '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.

How can I get rid of this error?

Regards Karthick

Szabolcs Varga April 15, 2004 05:33

Re: Compilation error
 
Dear Karthick , I had the very same question 2 days ago. Please look at the answer that I got below: " nmake is not recognized as an internal or external command

means that FLUENT can't find Microsoft Visual Studio command line compiler. You have to install it and to set PATH in order to use compiled UDF on a Windows platform. "

Hi :)

ap " The only thing that I do not know yet is from where I could get this compiler. There is nothing referred to it in the Fluent manuals.

Regards, Szabolcs

Karthick April 16, 2004 01:07

Re: Compilation error
 
Dear Szabolcs Varga

Thanks for your reply. But I've already installed the Microsoft Visual studio in my system. Can you please tell me how I can specify the path for Visual studio?

Regards Karthick

Szabolcs Varga April 16, 2004 03:21

Re: Compilation error
 
Dear Karthick, Sorry I can't, but if I am not mistaken it was discussed here some time ago, although that time I did not pay to much attention. Could you please help me out from where I could get the Microsoft Visual studio compiler? Does it make part of the Fluent isntallation media or if not is there a downloadable version? Regards, Szabolcs

Karthick April 16, 2004 03:45

Re: Compilation error
 
Dear Szabolcs Varga,

Sorry, I am having Microsoft Visual Studio full edition in my system. It is provided with Visual studio compiler. I don't think it will come as part of Fluent Installation program. U can get downloadable version from Microsoft website. But it will take more time.

But instead of compiling, my udf is interpreting well. But when I try to give iterations, it is showing ACCESS_VIOLATION ERROR. What may be the possible reasons?

Regards Karthick

Mahesh April 16, 2004 13:36

Re: Compilation error
 
For Compiled UDF, one requires VC++ 6.0 with service pack 5. While loading VC++, it will ask to register the environment variables. Select that option.

If u r using windows system. Do one thing, check the environment variables(path,lib,MSDevDir and one more). If not, set them accordingly.

Regards, Mahesh


All times are GMT -4. The time now is 11:06.