Does OS matter? Why?
The program(UDF) is complied successfully under Windows but doesn't work under Linux(Ubuntu 10.10.64bit). Why does this happen? Thanks!
Code:
#include<stdio.h> |
Have you checked if your Linux version contains all the required compilers and files ? Like for example "gcc" ?
Do |
DoHander, thanks for your attention. I check the problem again and find it's the style of comment that matters. In Fluent, you should use "/* */" to comment the codes instead of "//".
The Fluent uses cc as the compiler. But cc supports "//" comment style. Then the problem is due to parameters passed to cc. Code:
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 my_init.func.c |
All times are GMT -4. The time now is 11:37. |