CFD Online Discussion Forums

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

Argen January 13, 2012 14: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 15:56

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


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