CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   syntax error on config.h (http://www.cfd-online.com/Forums/fluent-udf/84012-syntax-error-config-h.html)

ehooi January 18, 2011 02:46

syntax error on config.h
 
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

massoudepsilon November 9, 2011 04:04

I have same problem
 
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 November 9, 2011 05:31

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 (Post 331312)
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 November 9, 2011 11:05

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


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