CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   error compiling UDF on windows x64 (http://www.cfd-online.com/Forums/fluent/50549-error-compiling-udf-windows-x64.html)

Andres February 12, 2009 16:22

error compiling UDF on windows x64
 
I compiled and used a UDF succesfully on Linux, but it fails to compile on Windows.

I am using visual studio 2008 enterprise's x64 command promp to launch fluent and everything is declared.

The problem is caused by mem.h and all the face/cell/thread pointers.

Here is what I get:

================================================== ==========

..\..\src\Vortex_code_1.c(55) : error C2275: 'cell_t' : illegal use of this type as an expression

c:\fluent.inc\fluent6.3.26\src\mem.h(173) : see declaration of 'cell_t'

..\..\src\Vortex_code_1.c(55) : error C2146: syntax error : missing ';' before identifier 'c'

..\..\src\Vortex_code_1.c(55) : error C2065: 'c' : undeclared identifier ================================================== ==========

This also happens for 'Thread *t' and 'face_t f'

t c and f are not passed to the functions as a result.

I also tried using visual 2005 and a separate SDK, but nothing seems to work.



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