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/)
-   -   illegal use of this type as an expression (http://www.cfd-online.com/Forums/fluent-udf/112019-illegal-use-type-expression.html)

abir January 20, 2013 11:27

illegal use of this type as an expression
 
Hi
I use fluent 6.2.16 and visual studio 2010 ultimate. My udf is not working well. When I want to hook my UDF it gives the following error.

..\..\src\january.c(126) : error C2275: 'real' : illegal use of this type as an expression
..\..\src\january.c(78) : see declaration of 'real'
..\..\src\january.c(126) : error C2146: syntax error : missing ';' before identifier 'UDRLXCOEFF'
..\..\src\january.c(126) : error C2065: 'UDRLXCOEFF' : undeclared identifier
..\..\src\january.c(127) : error C2065: 'UDRLXCOEFF' : undeclared identifier
..\..\src\january.c(131) : error C2143: syntax error : missing ';' before 'type'
..\..\src\january.c(132) : error C2275: 'real' : illegal use of this type as an expression
..\..\src\january.c(78) : see declaration of 'real'
..\..\src\january.c(132) : error C2146: syntax error : missing ';' before identifier 'sigma_square'
..\..\src\january.c(132) : error C2065: 'sigma_square' : undeclared identifier
..\..\src\january.c(133) : error C2065: 'sigma_square' : undeclared identifier
..\..\src\january.c(137) : error C2275: 'real' : illegal use of this type as an expression
..\..\src\january.c(78) : see declaration of 'real'
..\..\src\january.c(137) : error C2146: syntax error : missing ';' before identifier 'ambpress'
..\..\src\january.c(137) : error C2065: 'ambpress' : undeclared identifier
..\..\src\january.c(138) : error C2065: 'ambpress' : undeclared identifier
..\..\src\january.c(145) : error C2143: syntax error : missing ';' before 'type'
..\..\src\january.c(163) : error C2065: 'MeanFreePath' : undeclared identifier
..\..\src\january.c(163) : error C2065: 'sigma_square' : undeclared identifier
..\..\src\january.c(163) : error C2065: 'ambpress' : undeclared identifier
..\..\src\january.c(189) : error C2065: 'MeanFreePath' : undeclared identifier
..\..\src\january.c(216) : error C2065: 'UDRLXCOEFF' : undeclared identifier
..\..\src\january.c(216) : error C2065: 'UDRLXCOEFF' : undeclared identifier
Done.
Could any body help me? I need it very much.
My UDF is attached herewith.
Abir
tajul000@yahoo.com


All times are GMT -4. The time now is 05:13.