CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   expected primary-expression before '->' token (http://www.cfd-online.com/Forums/openfoam/96151-expected-primary-expression-before-token.html)

Argen January 13, 2012 15:43

expected primary-expression before '->' token
 
When I call the subroutine developed in a certain solver, mymodel->passK(newdata[ik]);, I got an error as,

add.C:104: error: expected primary-expression before '->' token.

The library for my model is included. Any idea about this error?

mturcios777 January 13, 2012 16:56

What type of object is mymodel, and how is it declared/initialized?


All times are GMT -4. The time now is 01:22.