CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   udf cannot run in windows but can in linux (http://www.cfd-online.com/Forums/fluent/39457-udf-cannot-run-windows-but-can-linux.html)

ra shmi January 31, 2006 10:41

udf cannot run in windows but can in linux
 
hi all

iam force using a udf for drag force..the same program can an anyone suggest be run in linux platform but cannot in windows...it gives me some errors when i build the program.can any one suggest me the reason behind it.....iam really surprised....!!!

thanks Rashmi

Luca January 31, 2006 13:57

Re: udf cannot run in windows but can in linux
 
It depends on your compiler. Under Windows you use MS VC++ while under linux gcc. I had your same problem. I decided to develop my UDF under linux excusively because it's very easy to use gcc and to link to external libraries. Luca

Vinod Dhiman February 14, 2006 13:12

Re: udf cannot run in windows but can in linux
 
Hi Rashmi

If you created it on Unix Platform and are trying to run it on Windows it will give error. Use the command unix2dos <filename> in unix to convert the format. For you the file will remain same but for OSs it changes. Likewise you can give command dos2unix <filename> for the udfs created in windows and are required to be used in unix or linux.

Vinod Dhiman


All times are GMT -4. The time now is 01:09.