|
[Sponsors] |
November 29, 2004, 10:35 |
CANNOT COMPILE
|
#1 |
Guest
Posts: n/a
|
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
|
|
November 29, 2004, 12:01 |
Re: CANNOT COMPILE
|
#2 |
Guest
Posts: n/a
|
What is your c compiler?
HV |
|
November 29, 2004, 12:54 |
Re: CANNOT COMPILE
|
#3 |
Guest
Posts: n/a
|
I have Borland Turbo C++ and MS Visual C++. Please help...
|
|
November 29, 2004, 13:12 |
Re: CANNOT COMPILE
|
#4 |
Guest
Posts: n/a
|
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?
|
|
November 29, 2004, 13:20 |
Re: CANNOT COMPILE
|
#5 |
Guest
Posts: n/a
|
nothing works (in Fluent text GUI or in windows prompt panel). the commands don't exist.
|
|
November 29, 2004, 14:44 |
Re: CANNOT COMPILE
|
#6 |
Guest
Posts: n/a
|
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 |
|
November 29, 2004, 21:31 |
Re: CANNOT COMPILE
|
#7 |
Guest
Posts: n/a
|
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 |
|
November 30, 2004, 02:58 |
Re: CANNOT COMPILE
|
#8 |
Guest
Posts: n/a
|
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++
|
|
November 30, 2004, 13:41 |
Re: CANNOT COMPILE
|
#9 |
Guest
Posts: n/a
|
Thanks Aravind, but I absolutely need to compile my function because I use the dynamic mesh.
|
|
November 30, 2004, 13:44 |
Re: CANNOT COMPILE
|
#10 |
Guest
Posts: n/a
|
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
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
DUNS compile with VC++, VF or gcc/g77 in PC | Ali Irvi | Main CFD Forum | 17 | August 6, 2014 09:19 |
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 | gwierink | OpenFOAM Installation | 0 | April 5, 2011 04:38 |
PV3FoamReader compile error.... | PEM_GUY | OpenFOAM Installation | 6 | April 5, 2010 17:22 |
Error compile file udf | czfluent | Fluent UDF and Scheme Programming | 24 | September 26, 2009 13:24 |