CFD Online Logo CFD Online URL
Home > Forums > FLUENT

C++ Compiler for UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 29, 2000, 08:04
Default C++ Compiler for UDF
Dmitriy Makarov
Posts: n/a
Dear all,

I need to compile my UDF. Fluent's Win NT FAQ page strictly advises Microsoft Visual C++ 6.0 compiler as the only choice. Is it really the only way to do it?

I have Borland C/C++ 5.01 GNU, which contains Microsoft NMAKE version 1.60.5270. It seems to work OK, but I can not see anything like "libudf.*" in UDF source directory. The output is like this:

cl /c /Za /Dextern=__declspec(dllimport) -I\\molk\d\\fluent5.3\ntx86\2d -I\\molk\d\\fluent5.3\src -I\\molk\d\\fluent5.3\cortex\src -I\\molk\d\\fluent5.3\client\src -I\\molk\d\\fluent5.3\tgrid\src -I\\molk\d\\fluent5.3\multiport\src ..\..\src\chan_1.c

echo # Generating udf_names.c because of makefile chan_1.obj

sed -n "s/^DEFINE_\([_A-Z]*\)( *\([_a-zA-Z0-9]*\).*)/\2\ /p" ..\..\src\chan_1.c >> udfdll.def

cl /c /Za -I\\molk\d\\fluent5.3\ntx86\2d -I\\molk\d\\fluent5.3\src -I\\molk\d\\fluent5.3\cortex\src -I\\molk\d\\fluent5.3\client\src -I\\molk\d\\fluent5.3\tgrid\src -I\\molk\d\\fluent5.3\multiport\src udf_names.c

echo # Linking libudf.dll because of makefile user_nt.udf udf_names.obj chan_1.obj

link /Libpath:\\molk\d\\fluent5.3\ntx86\2d /dll /debug /out:libudf.dll /def:udfdll.def udf_names.obj chan_1.obj fl5318s.lib

Any suggestions are very welcome. Thank you,

  Reply With Quote

Old   December 12, 2000, 03:41
Default Re: C++ Compiler for UDF
Lasse Rosendahl
Posts: n/a
Hi Dmitriy,

I use MS Visual C++ 4.0 - it seems to work fine (a little bit of dll confusion, but that can be easily worked around).

  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Erik Siemens 2 November 28, 2008 21:05
Intel compiler for linux x86 marcus Siemens 1 November 9, 2006 17:43
Fluent 6.2 and gcc compiler in Sun Blade 2500 Nitu Gupta FLUENT 8 April 29, 2005 13:58
Fortran compiler Arnab Siemens 5 September 14, 2004 03:59

All times are GMT -4. The time now is 21:24.