CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

GNU-GCC c-compiler under Windows XP

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2006, 08:30
Default GNU-GCC c-compiler under Windows XP
  #1
Astrid
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 21, 2006, 09:23
Default Re: GNU-GCC c-compiler under Windows XP
  #2
HVN
Guest
 
Posts: n/a
You couldn't change the compiler recommanded/imposed by Fluent.
  Reply With Quote

Old   February 21, 2006, 11:21
Default Re: GNU-GCC c-compiler under Windows XP
  #3
Astrid
Guest
 
Posts: n/a
So, I have to buy this piece of software??? Fluent didn't tell me that

Or should I switch to Linux?

Astrid
  Reply With Quote

Old   February 21, 2006, 11:27
Default Re: GNU-GCC c-compiler under Windows XP
  #4
Luca
Guest
 
Posts: n/a
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

  Reply With Quote

Old   February 21, 2006, 16:31
Default Re: GNU-GCC c-compiler under Windows XP
  #5
Astrid
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 21, 2006, 16:42
Default Re: GNU-GCC c-compiler under Windows XP
  #6
RoM
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 21, 2006, 19:28
Default Re: GNU-GCC c-compiler under Windows XP
  #7
Astrid
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 22, 2006, 01:36
Default Re: GNU-GCC c-compiler under Windows XP
  #8
RoM
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 27, 2006, 07:19
Default Re: GNU-GCC c-compiler under Windows XP
  #9
Astrid
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 27, 2006, 09:16
Default Re: GNU-GCC c-compiler under Windows XP
  #10
RoM
Guest
 
Posts: n/a
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
  Reply With Quote

Reply


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 Off
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 13:43
Question on specify gcc compiler for OpenFOAM 15 peterlai OpenFOAM Installation 2 October 2, 2008 07:20
Need Makefile for GCC in windows to compile UDFs Filipe Madureira FLUENT 2 December 28, 2005 16:08
Gerris software installation mer Main CFD Forum 2 November 12, 2005 08:50
Fluent 6.2 and gcc compiler in Sun Blade 2500 Nitu Gupta FLUENT 8 April 29, 2005 13:58


All times are GMT -4. The time now is 14:05.