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
|
Re: CANNOT COMPILE
What is your c compiler?
HV |
Re: CANNOT COMPILE
I have Borland Turbo C++ and MS Visual C++. Please help...
|
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?
|
Re: CANNOT COMPILE
nothing works (in Fluent text GUI or in windows prompt panel). the commands don't exist.
|
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 |
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 |
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++
|
Re: CANNOT COMPILE
Thanks Aravind, but I absolutely need to compile my function because I use the dynamic mesh.
|
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. |