|
[Sponsors] |
March 19, 2006, 19:59 |
HELP! Problem compiling UDF function
|
#1 |
Guest
Posts: n/a
|
Hi,
I'm desperately trying to solve a problem. I'm running through the tutorial on dynamic meshing in the Fluent user guide. When I get to the step where I need to import my UDF: Define->User Defined->Functions->Compiled, I get an error message. I have been trying to solve this using both Windows and Linux, but with no success. I'm getting the following error message: ----------------------------------- cpp -IC:\Fluent.Inc\fluent6.1/src -IC:\Fluent.Inc\fluent6.1/cortex/src -IC:\Fluent.Inc\fluent6.1/client/src -IC:\Fluent.Inc\fluent6.1/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" x-dir.c Error: x-dir.c: line 3: parse error. 1 file(s) copied. (system "move user_nt.udf libudf\ntx86\2ddp")0 (system "copy C:\Fluent.Inc\fluent6.1\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2ddp")() '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. ------------------------------------ Line 3, where the apparent error is reads: static real v_prev = 0.0; I'm lost. Can anyone help me out? Thanks Syrakus |
|
March 19, 2006, 21:13 |
Re: HELP! Problem compiling UDF function
|
#2 |
Guest
Posts: n/a
|
The parser stops at line 3, but you have to check both line 1 and 2. This is a C language syntax rule.
|
|
March 19, 2006, 22:58 |
Re: HELP! Problem compiling UDF function
|
#3 |
Guest
Posts: n/a
|
Thanks Ahmed,
the problem seems to be that it can't identify the command "nmake". I'm following the tutorial step by step and yet no success. I get stuck at step 8 in the dynamic mesh tutorial. Is there something about compiling I should know, that isn't mentioned in the tutorial? |
|
March 20, 2006, 00:08 |
Re: HELP! Problem compiling UDF function
|
#4 |
Guest
Posts: n/a
|
Fluent is most tuned to work with MS C compiler, do you have it correctly installed on your computer (Check your path)
|
|
April 3, 2006, 09:58 |
Re: HELP! Problem compiling UDF function
|
#5 |
Guest
Posts: n/a
|
Hey i have the same problem: trying to solve tutorial 11 on dynamic meshing in the Fluent user guide, and get stuck at step8 (Mesh motion) where I need to import my UDF: Define->User Defined->Functions->Compiled
The error message seems not to find the command "nmake"!!! Help?! Thanks, Di |
|
April 6, 2006, 18:33 |
Re: HELP! Problem compiling UDF function
|
#6 |
Guest
Posts: n/a
|
If you are working in windows environment please do install visual C++ and do not forget to register at ENVIRONMENT VARIABLEs at end of installation .
|
|
April 7, 2006, 11:48 |
Re: HELP! Problem compiling UDF function
|
#7 |
Guest
Posts: n/a
|
Hey, thanks it works now
I am working in windows and visual C++ was already installed, but some of my Environment Variables were missing... Lesson learned: Always check whether ALL environment variables are set!!! Di |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with function Compute_Force_And_Moment | zedas | FLUENT | 1 | October 15, 2012 01:36 |
help: udf compiling problem on 64 bit windows XP | Hsieh | FLUENT | 2 | September 10, 2009 05:51 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
Udf compiling problem | ranjit | FLUENT | 1 | January 26, 2007 11:03 |
C_NNODES UDF 'function' problem | Matthew Brannock | FLUENT | 2 | June 21, 2000 23:46 |