|
[Sponsors] |
October 11, 2000, 12:35 |
Compiled UDF / Compilation problem
|
#1 |
Guest
Posts: n/a
|
Hi !
I composed a UDF for VOF method.The first four lines of this UDF are library including instructions: #include "udf.h" #include "mem.h" #include "metric.h" #include "sg_vof.h". The compilation output is terrible to look at.It says the next: make[1]: Entering directory `/home/student1/FluentF/Mesh/libudf/lnx86/2d' # Generating udf_names.c because of udfvof1.c make[2]: Entering directory `/home/student1/FluentF/Mesh/libudf/lnx86/2d' make libudf.so "CFLAGS=-fpic -shared -ansi -Wall -O " "LDFLAGS=-shared -lm" make[3]: Entering directory `/home/student1/FluentF/Mesh/libudf/lnx86/2d' # Compiling udf_names.o because of udf_names.c cc -fpic -shared -ansi -Wall -O -I/usr/local/Fluent.Inc/fluent5.3/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/usr/local/Fluent.Inc/fluent5.3/src -I/usr/local/Fluent.Inc/fluent5.3/cortex/src -I/usr/local/Fluent.Inc/fluent5.3/client/src -I/usr/local/Fluent.Inc/fluent5.3/tgrid/src -I/usr/local/Fluent.Inc/fluent5.3/multiport/src -c udf_names.c # Compiling udfvof1.o because of udfvof1.c cc -fpic -shared -ansi -Wall -O -I/usr/local/Fluent.Inc/fluent5.3/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/usr/local/Fluent.Inc/fluent5.3/src -I/usr/local/Fluent.Inc/fluent5.3/cortex/src -I/usr/local/Fluent.Inc/fluent5.3/client/src -I/usr/local/Fluent.Inc/fluent5.3/tgrid/src -I/usr/local/Fluent.Inc/fluent5.3/multiport/src -c udfvof1.c In file included from udfvof1.c:2: /usr/local/Fluent.Inc/fluent5.3/src/mem.h:17: conflicting types for `SM_EQN_G' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:17: previous declaration of `SM_EQN_G' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:18: conflicting types for `SM_VIS1' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:18: previous declaration of `SM_VIS1' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:19: conflicting types for `SM_TMP0' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:19: previous declaration of `SM_TMP0' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:20: conflicting types for `SM_NRMDIST' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:20: previous declaration of `SM_NRMDIST' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:21: conflicting types for `SM_EQLENSQ' /usr/local/Fluent.Inc/fluent5.3/src/mem.h:21: previous declaration of `SM_EQLENSQ'... and so on mentioning all the variables in libraries mem.h, storage.h and metric.h.The last lines of this output are : /usr/local/Fluent.Inc/fluent5.3/src/metric.h:40: conflicting types for `QUAD_FACE' /usr/local/Fluent.Inc/fluent5.3/src/metric.h:40: previous declaration of `QUAD_FACE' /usr/local/Fluent.Inc/fluent5.3/src/metric.h:40: redefinition of `Face_Element_Type' /usr/local/Fluent.Inc/fluent5.3/src/metric.h:40: `Face_Element_Type' previously declared here make[3]: *** [udfvof1.o] Error 1 make[3]: Target `libudf.so' not remade because of errors. make[3]: Leaving directory `/home/student1/FluentF/Mesh/libudf/lnx86/2d' make[2]: *** [lnx86] Error 2 make[2]: Leaving directory `/home/student1/FluentF/Mesh/libudf/lnx86/2d' make[1]: *** [default] Error 2 make[1]: Leaving directory `/home/student1/FluentF/Mesh/libudf/lnx86/2d' The /home/student1/FluentF/Mesh/libudf is a directory, where I keep my udf files. May be somebody had the problem like this while compiling his own UDF ? I'd be very grateful to everybody who will send me his ideas about this matter. Best wishes, Mikhail |
|
October 13, 2000, 07:12 |
Re: Compiled UDF / Compilation problem
|
#2 |
Guest
Posts: n/a
|
To my opinion You do'nt need the lines #include "mem.h" #include "metric.h" #include "sg_vof.h" in Your udf file.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what's the problem with my udf | zzyan | FLUENT | 0 | November 4, 2010 04:56 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |
Problem with UDF compilation in LINUX | tez | Fluent UDF and Scheme Programming | 2 | April 11, 2010 20:18 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 11:16 |
problem about compiled udf | lingo | FLUENT | 0 | April 19, 2004 01:48 |