CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   CANNOT COMPILE (https://www.cfd-online.com/Forums/fluent/35191-cannot-compile.html)

Luca November 29, 2004 10:35

CANNOT COMPILE
 
Hi! I have a Windows Fluent version. When I try to compile a UDF I have the following error: cannot find nmake. I think nmake is used to compile my file.How can I solve the problem?Thanks in advance. Luca

HVN November 29, 2004 12:01

Re: CANNOT COMPILE
 
What is your c compiler?

HV

Luca November 29, 2004 12:54

Re: CANNOT COMPILE
 
I have Borland Turbo C++ and MS Visual C++. Please help...

HVN November 29, 2004 13:12

Re: CANNOT COMPILE
 
For fluent, you need to use Microsoft Visual C++ 6.0 In a command prompt windows, could you type this 2 commands: cl and link/version. And then could you tell what are the messages?

Luca November 29, 2004 13:20

Re: CANNOT COMPILE
 
nothing works (in Fluent text GUI or in windows prompt panel). the commands don't exist.

Luca November 29, 2004 14:44

Re: CANNOT COMPILE
 
ok i typed at the prompt command in the VSC++ directory: vcvars32.bat

Now if I type cl the message is how to use cl. the link command works but i cannot make work link/version...maybe I mistake something... I wait fot your suggestions.Luca


Aravind November 29, 2004 21:31

Re: CANNOT COMPILE
 
Hi,

If you are using "Intrepret" for your UDF then make sure that you have the *.cas file, udfconfig.h and *.c file all in the same directory.When you read your case file you should read it from this directory which contains .h and .c files. If this doesnt work then copy the above three files and put it into C:\Fluent.inc folder, then it will work definitely. If your UDF (like DEFINE_CG_MOTION,DEFINE_GRID_MOTION) requires "compile" then you NEED to use VC++. Again make sure they are all in the same directory.

Hope this helps. Aravind

HVN November 30, 2004 02:58

Re: CANNOT COMPILE
 
It means that your environment variables aren't correctly set-up. It explains why Fluent couldn't find the nmake command for compilation. Perhaps you need to reinstall the VSC++

Luca November 30, 2004 13:41

Re: CANNOT COMPILE
 
Thanks Aravind, but I absolutely need to compile my function because I use the dynamic mesh.

Luca November 30, 2004 13:44

Re: CANNOT COMPILE
 
At the moment I solved the problem by typing vcvars32.bat and then launching Fluent.Now everything kworks. Thanks HVN and Aravind for your precious suggestions. Luca


All times are GMT -4. The time now is 22:23.