|
[Sponsors] |
February 22, 2006, 10:56 |
UDF and C
|
#1 |
Guest
Posts: n/a
|
Just a little question. Is it possible to compile my UDFs using a free C compiler instead of using the Microsoft Visual C++ ???
Something like Dev-Cpp ?? Hugs Lourival |
|
February 23, 2006, 02:48 |
Re: UDF and C
|
#2 |
Guest
Posts: n/a
|
The manual says that you can use any text editor to creat a text file containing C code.You only have to save the source code file with a.c extension in your working directory.
Lucy |
|
February 23, 2006, 02:59 |
Re: UDF and C
|
#3 |
Guest
Posts: n/a
|
On windows machines you are forced to use the microsoft compiler, I think that the Redistributable Package should be sufficient, anyway. You can download it from MS website. I'm not entirely sure, by the way, I always run fluent on linux/unix machines, and there you can use the compiler you like...
Good luck Edi. |
|
February 23, 2006, 03:43 |
Re: UDF and C
|
#4 |
Guest
Posts: n/a
|
You can compile with gcc under XP but its really not worth the trouble. The greatest problem is the fluent.lib for the ld linker. The ones supplied by fluent are not compatible with ld so you have manually build the import archives. (see here http://www.mingw.org/mingwfaq.shtml#faq-msvcdll) The only tool which catches all the export entrys from fluent.lib seems to be the ms linker with "/dump /exports" option (neither reimp.exe or pexports.ex will work correctly) and if you are going to use the ms linker you can use the comiler as well.
Here are the links to the packeges you need Net Framework Sdk (includes nmake tool) http://www.microsoft.com/downloads/d...displaylang=en NET Framework Redistributable Package (required bevor installing the sdk) http://www.microsoft.com/downloads/d...displaylang=en Visaul C++ Toolkit http://msdn.microsoft.com/visualc/vctoolkit2003/ RoM |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |