CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Compiling UDF in windows 8 (https://www.cfd-online.com/Forums/fluent-udf/134278-compiling-udf-windows-8-a.html)

christophelorant April 27, 2014 06:47

Compiling UDF in windows 8
 
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


All times are GMT -4. The time now is 02:35.