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

error compiling UDF on windows x64

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2009, 15:22
Default error compiling UDF on windows x64
  #1
Andres
Guest
 
Posts: n/a
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.

  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
help: udf compiling problem on 64 bit windows XP Hsieh FLUENT 2 September 10, 2009 04:51
UDF compiling in Windows Subramani Sockalingam FLUENT 2 July 28, 2007 09:47
UDF compiling problem in Windows Mazyar FLUENT 1 April 26, 2006 01:48
Compiling UDFs under Windows XP Hannah FLUENT 3 February 13, 2005 08:16
compiling udf on windows system sivakumar FLUENT 1 August 10, 2002 11:11


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