|
[Sponsors] |
March 25, 2003, 16:46 |
compiled UDF
|
#1 |
Guest
Posts: n/a
|
I followed UDF Manual section 7.3 to compile my complied UDF, but after I input command line:
make "FLUENT ARCH=aix43" I got a message as follows: make: 1254-002 Cannot find a rule to create target FLUENT ARCH=aix43 from dependencies. Stop. Do you have any idea what is wrong? Thanks a lot. |
|
March 25, 2003, 20:23 |
Re: compiled UDF
|
#2 |
Guest
Posts: n/a
|
Hi
Check if the C compilor has been installed (gcc, or cc) Copy a short UDF from fluent and Interpreted the UDF if this does not work, You know that something has not been installed correctly In addtion, are you typing "FLUENT_ARCH=aix53" because all the characteres are important Regards Alex |
|
March 25, 2003, 20:34 |
Re: compiled UDF
|
#3 |
Guest
Posts: n/a
|
Hi
Also readed some lines below Compiling UDF Alex Munoz I gave to this person some solution for almost the same problem Regards Alex |
|
March 25, 2003, 20:57 |
Re: compiled UDF
|
#4 |
Guest
Posts: n/a
|
Thank you very much, Alex. You helped me to figure out one problem: when I printed out the UDF manual, or _ disappear. So I was typing make "FLUENT ARCH=aix43", and that was the reason for that error message. But now I still have problem. I used a very simple code which was fine as interpreted UDF. When I typed in
make "FLUENT_ARCH=aix43" The message becomes for d in aix43/[23]*; do ( cd $d; for f in ../../src/*.[ch] ../../src/makefile; do if [ ! -f `basename $f` ]; then echo "# linking to" $f "in" $d; ln -s $f .; fi; done; echo ""; echo "# building library in" $d; make -k>makelog 2>&1; cat makelog; ) done # linking to ../../src/udfdrag.c in aix43/2d # linking to ../../src/makefile in aix43/2d # building library in aix43/2d make: 1254-004 The error code from the last command is 2. I have no idea what does this error code mean. Do you? |
|
March 25, 2003, 23:52 |
Re: compiled UDF
|
#5 |
Guest
Posts: n/a
|
When I copy the example file of DEFINE_ADJUST in UDF manual p 4-5 into my udf_file.c, it compiles successfully. However, when I copy the DEFINE_DPM_DRAG example in p 4-75 into the same file, the error message always says:
# building library in aix43/2d make: 1254-004 The error code from the last command is 2. Anyone knows why? And anyone tried to use DEFINE_DPM_DRAG ? |
|
March 26, 2003, 15:55 |
Re: compiled UDF
|
#6 |
Guest
Posts: n/a
|
Hello
I know what it is happening I think you are using Fluent 6 but the code that you copy is made for Fluent 5 Make sure that you copy a source code made for the Fluent that you are using For instance in Fluent 6 you write Get Domain include udf.h whereas in FLUENT 5 you write Domain include udf.h include dpm.h include sg.h Therefore, make sure that you know the difference between each version when you write your code Best Regards Alex |
|
March 26, 2003, 19:38 |
Re: compiled UDF
|
#7 |
Guest
Posts: n/a
|
You are right, Alex! I found that I need to add
#include "dpm.h" in order to use the example file from the UDF manual I have. Thanks a lot. |
|
March 26, 2003, 20:33 |
Re: compiled UDF
|
#8 |
Guest
Posts: n/a
|
Hi hedonist!
I know it! Now you can send me a present, this compiling problem could take you week to found it! Anyway, now you can practice your nick name "hedonist" Regards Alex |
|
March 26, 2003, 23:45 |
Re: compiled UDF
|
#9 |
Guest
Posts: n/a
|
Present to Alex:
\(((())))/ O |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
I want to use pressure of 1 face in udf that compiled on other face | iman_1844 | Fluent UDF and Scheme Programming | 3 | June 10, 2010 13:55 |
Why udf can not be compiled in my pc? | Xinqiang | FLUENT | 0 | June 10, 2009 15:32 |
difference between udf compiled and udf interprete | chandra sekhar | FLUENT | 2 | April 11, 2006 01:04 |
how to quit compiled or interprited UDF | tian | FLUENT | 0 | April 9, 2003 00:53 |