|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
小弟最近一直在纠结如何在linux系统中如何编译UDF程序,fluent帮助文件中的方法已经试过了,但是有几个地方不知道怎么弄。在建立好所有的文件夹后,将.c,Makefile,makefile放到相应的文件夹,执行make后总是有错误,无法生成.so文件。
这是make后生成的日志文件,我也看不懂错在哪里,有哪位大哥大姐可以帮帮我啊!!!
make[1]: Entering directory `/public/home/yzh/UDF/libudf/lnx86/2d'
make[2]: Entering directory `/public/home/yzh/UDF/libudf/lnx86/2d'
make libudf.so "CFLAGS=-fpic -shared -ansi -Wall -m32 -O " "LDFLAGS=-shared -lm -m elf_i386"
make[3]: Entering directory `/public/home/yzh/UDF/libudf/lnx86/2d'
# Compiling udf_names.o because of udf_names.c
cc -fpic -shared -ansi -Wall -m32 -O -I/opt/Fluent.Inc/fluent6.3.26/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/opt/Fluent.Inc/fluent6.3.26/src -I/opt/Fluent.Inc/fluent6.3.26/cortex/src -I/opt/Fluent.Inc/fluent6.3.26/client/src -I/opt/Fluent.Inc/fluent6.3.26/tgrid/src -I/opt/Fluent.Inc/fluent6.3.26/multiport/src -I. -c udf_names.c
In file included from /opt/Fluent.Inc/fluent6.3.26/src/global.h:21,
from /opt/Fluent.Inc/fluent6.3.26/src/udf.h:23,
from udf_names.c:3:
/opt/Fluent.Inc/fluent6.3.26/src/config.h:119: error: expected 鈥?鈥? 鈥?鈥? 鈥?鈥? 鈥榓sm鈥?or 鈥榑_attribute__鈥?before 鈥?鈥?token
make[3]: *** [udf_names.o] Error 1
# Compiling CO_density.o because of CO_density.c
cc -fpic -shared -ansi -Wall -m32 -O -I/opt/Fluent.Inc/fluent6.3.26/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/opt/Fluent.Inc/fluent6.3.26/src -I/opt/Fluent.Inc/fluent6.3.26/cortex/src -I/opt/Fluent.Inc/fluent6.3.26/client/src -I/opt/Fluent.Inc/fluent6.3.26/tgrid/src -I/opt/Fluent.Inc/fluent6.3.26/multiport/src -I. -c CO_density.c
In file included from /opt/Fluent.Inc/fluent6.3.26/src/global.h:21,
from /opt/Fluent.Inc/fluent6.3.26/src/udf.h:23,
from CO_density.c:1:
/opt/Fluent.Inc/fluent6.3.26/src/config.h:119: error: expected 鈥?鈥? 鈥?鈥? 鈥?鈥? 鈥榓sm鈥?or 鈥榑_attribute__鈥?before 鈥?鈥?token
make[3]: *** [CO_density.o] Error 1
make[3]: Target `libudf.so' not remade because of errors.
make[3]: Leaving directory `/public/home/yzh/UDF/libudf/lnx86/2d'
make[2]: *** [lnx86] Error 2
make[2]: Leaving directory `/public/home/yzh/UDF/libudf/lnx86/2d'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/public/home/yzh/UDF/libudf/lnx86/2d' |
|