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

syntax error on config.h

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2011, 02:46
Default syntax error on config.h
  #1
Member
 
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15
ehooi is on a distinguished road
Hi,
Does anyone know why I am getting syntax error on codes that come along with FLUENT (underlined)? These are all built in functions that come together with FLUENT. Also, I dont understand why I_AM_NODE_ZERO is undeclared. Can anyone help me here?

Thanks.


EH

c:\program files\ansys inc\v121\fluent\fluent12.1.4\src\config.h(110) : error C2143: syntax error : missing '{' before ':'
c:\program files\ansys inc\v121\fluent\fluent12.1.4\src\config.h(110) : error C2059: syntax error : ':'
C:\PROGRA~1\ANSYSI~1\v121\fluent\fluent12.1.4\cort ex\src\dll.h(68) : error C2061: syntax error : identifier 'CX_DLL_GetProc'
C:\PROGRA~1\ANSYSI~1\v121\fluent\fluent12.1.4\cort ex\src\dll.h(68) : error C2059: syntax error : ';'
C:\PROGRA~1\ANSYSI~1\v121\fluent\fluent12.1.4\cort ex\src\dll.h(68) : error C2059: syntax error : 'type'
..\..\src\fcn_temp_parallel.c(73) : error C2065: 'I_AM_NODE_ZERO_P' : undeclared identifier
..\..\src\fcn_temp_parallel.c(117) : error C2065: 'I_AM_NODE_ZERO_P' : undeclared identifier
ehooi is offline   Reply With Quote

Old   November 9, 2011, 04:04
Default I have same problem
  #2
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15
massoudepsilon is on a distinguished road
Hi Dear Ehooi,

I am receiving same errors that you received( 2059, 2061) for config.h and dll.h. Hence, I am wondering whether you could solve them or not?

Cheers,
Massoud
massoudepsilon is offline   Reply With Quote

Old   November 9, 2011, 05:31
Default
  #3
Member
 
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15
ehooi is on a distinguished road
If I remember correctly, it is because I have not set up correctly the link between FLuent and C++. If that is the reason for your error, then make sure you use Microsoft Visual Studio Express and start fluent from Windows SDK 7.1 command prompt.

Quote:
Originally Posted by massoudepsilon View Post
Hi Dear Ehooi,

I am receiving same errors that you received( 2059, 2061) for config.h and dll.h. Hence, I am wondering whether you could solve them or not?

Cheers,
Massoud
ehooi is offline   Reply With Quote

Old   November 9, 2011, 11:05
Default
  #4
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15
massoudepsilon is on a distinguished road
thank you so much for your quick respond,

I tried to connect my fluent to C++ by several ways, but none of them worked.

could you remember how did you do that exactly?

sorry for bothering you again and thank you for your great help.

Cheers,
Massoud
massoudepsilon is offline   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
[Other] Turbogrid power syntax la7low ANSYS Meshing & Geometry 0 January 15, 2011 23:20
OpenFOAM file syntax amtri OpenFOAM 5 August 28, 2010 08:19
Power Syntax Command BGK CFX 4 June 20, 2010 07:25
Interpolation command '-interp-iv' in syntax file KM CFX 4 October 12, 2007 17:29
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 23:45.