CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   HELP! Problem compiling UDF function (http://www.cfd-online.com/Forums/fluent/40210-help-problem-compiling-udf-function.html)

Syrakus March 19, 2006 19:59

HELP! Problem compiling UDF function
 
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

Ahmed March 19, 2006 21:13

Re: HELP! Problem compiling UDF function
 
The parser stops at line 3, but you have to check both line 1 and 2. This is a C language syntax rule.

Alex March 19, 2006 22:58

Re: HELP! Problem compiling UDF function
 
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?

Ahmed March 20, 2006 00:08

Re: HELP! Problem compiling UDF function
 
Fluent is most tuned to work with MS C compiler, do you have it correctly installed on your computer (Check your path)

Di April 3, 2006 08:58

Re: HELP! Problem compiling UDF function
 
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


suvarchal kumar April 6, 2006 17:33

Re: HELP! Problem compiling UDF function
 
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 .

Di April 7, 2006 10:48

Re: HELP! Problem compiling UDF function
 
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


All times are GMT -4. The time now is 13:46.