CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   GNU-GCC c-compiler under Windows XP (https://www.cfd-online.com/Forums/fluent/39749-gnu-gcc-c-compiler-under-windows-xp.html)

Astrid February 21, 2006 08:30

GNU-GCC c-compiler under Windows XP
 
Hi all,

I would like to use the GNU-GCC c-compiler for UDF-functions (Windows XP). However, Fluent keeps looking for Microsoft c-compiler . How do I change that?

Thanks, Astrid

HVN February 21, 2006 09:23

Re: GNU-GCC c-compiler under Windows XP
 
You couldn't change the compiler recommanded/imposed by Fluent.

Astrid February 21, 2006 11:21

Re: GNU-GCC c-compiler under Windows XP
 
So, I have to buy this piece of software??? Fluent didn't tell me that :(

Or should I switch to Linux?

Astrid

Luca February 21, 2006 11:27

Re: GNU-GCC c-compiler under Windows XP
 
if you want to use gcc why not running Fluent under linux? If you use Windows, Fluent by default makes a makefile for Visual Studio. Maybe you could alter this and try to compile your udf with gcc...Good luck Luca


Astrid February 21, 2006 16:31

Re: GNU-GCC c-compiler under Windows XP
 
Linux.... We have a Linux cluster in house. But my desktop PC..... I would lke to run small test calculations with Dynamic mesh routines.

Thanks anyway...

Astrid

RoM February 21, 2006 16:42

Re: GNU-GCC c-compiler under Windows XP
 
You dont have to buy a full Visual C Studio licence just to build that tiny libudf.dll . All you need is the compiler/linker (free donwonload from microsoft) and the nmake tool which should be part of the NET Framework Redistributable Package (also free download)

Free MSVC Compiler

http://msdn.microsoft.com/visualc/vctoolkit2003/

Microsoft .NET Framework Version 1.1 Redistributable Package (including nmake tool)

http://www.microsoft.com/downloads/d...displaylang=en

Good Luck, RoM

Astrid February 21, 2006 19:28

Re: GNU-GCC c-compiler under Windows XP
 
Hi RoM,

Thank you. I will try it asap. I was already looking at the MS-website but didn't find this one.

Regs, Astrid

RoM February 22, 2006 01:36

Re: GNU-GCC c-compiler under Windows XP
 
I am not entirely shure if the nmake in included in the Redistributable Package. It has been a while since i installed that stuff on my machine. Maybe you need to install the SDK as well

http://www.microsoft.com/downloads/d...displaylang=en

or send me an mail if you dont want to download 140MB just for the 80kb nmake.exe

Good Luck, RoM

Astrid February 27, 2006 07:19

Re: GNU-GCC c-compiler under Windows XP
 
Hi RoM

I have installed all features and included everything in my path. Using a DOS-box, I can run make and nmake. But Fluent doesn't take it. How to configure it further?

Astrid

RoM February 27, 2006 09:16

Re: GNU-GCC c-compiler under Windows XP
 
If fluent fails to build your libudf.dll (it always crashes on my system and even the support had no solution to this) you can build your .dll from hand.

In your working directory where you .cas and .dat files are stored create a new directory "libudf". In the "libudf" dir create the two directories "src" and "ntx86". Place you source file(s) int the "src" directory. In the "ntx86" dir create a directory "3ddp" (other possible names are "2d" "2ddp" and "3d" depending on the solver you want to use). Search the fluent "src" directory (default is "C:\Fluent.Inc\fluent6.2.16\src") for the files "makefile_nt.udf" and "user_nt.udf". Copy both files into the "3ddp" dir. In the "makefile_nt.udf" delete the "/debug" switch in line 122 as it will cause a lot of warnings during the linking. Rename "makefile_nt.udf" into "makefile".

Edit the "user_nt.udf" file lines 64-66. Lets assume your sourcefile is named "libudf.c" and you want to compile for 3ddp and no parallel. The entries should look like this

SOURCES = $(SRC)libudf.c
VERSION = 3ddp
PARALLEL_NODE = none


Open a dos box and change the directory to the "3ddp" folder, then type nmake. This will build your libudf.dll if everything is setup correctly.

Good luck, RoM


All times are GMT -4. The time now is 10:49.