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

Compiling UDF in windows 8

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2014, 07:47
Default Compiling UDF in windows 8
  #1
New Member
 
Christophe Lorant
Join Date: Apr 2014
Posts: 2
Rep Power: 0
christophelorant is on a distinguished road
Hi everyone,

I've recently been forced to switch to a windows 8 (64bit) computer and I'm facing some trouble to compile my udf in Fluent.

Here is what i've done so far to fix the problem (following solutions found in http://www.cfd-online.com/Forums/blo...pile-udfs.html and http://www.cfd-online.com/Wiki/Fluen...tch_file.22.3F) :

1. Install Fluent 6.3.26 64bit

2. Install Microsoft Visual Studio 2013 Express

3. Add the following to the PATH environment variable:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
C:\Fluent.Inc\ntbin\win64

4. Open the VS2013 cross tools x64 command prompt

5. Navigate to the directory where my .cas, .dat and .c files are and start Fluent from there

6. Try to compile the very simple following UDF file test.c:

Code:
#include "udf.h"

DEFINE_SOURCE(source_fcn,c,t,dS,eqn)
{
    return 0.0;
}

This however, generates the following error:

Quote:
Deleted old libudf\win64\2ddp\libudf.dll
1 fichier(s) copi‚(s).
(system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\win64\2ddp\makefile")
1 fichier(s) copi‚(s).
(chdir "libudf")()
(chdir "win64\2ddp")()
test.c
c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2143: erreur de syntaxe˙: absence de '{' avant ':'
c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2059: erreur de syntaxe˙: ':'
If anyone has already faced (and solved) this kind of issue, help would be appreciated!

C. Lorant
christophelorant is offline   Reply With Quote

Reply

Tags
udf, windows 8;64bit;compile


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
compiling udf at window Nt(64BIT) noa FLUENT 3 July 30, 2014 00:01
Error during Compiling UDF for Rotor Motion deepak.dce06 Fluent UDF and Scheme Programming 1 October 15, 2013 13:51
ERROR in compiling UDF stefanos Fluent UDF and Scheme Programming 1 April 25, 2012 08:37
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
error compiling UDF on windows x64 Andres FLUENT 0 February 12, 2009 16:22


All times are GMT -4. The time now is 16:50.