CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

expected primary-expression before '->' token

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 13, 2012, 15:43
Question expected primary-expression before '->' token
Join Date: Jan 2010
Posts: 44
Rep Power: 7
Argen is on a distinguished road
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?
Argen is offline   Reply With Quote

Old   January 13, 2012, 16:56
Senior Member
mturcios777's Avatar
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727
Rep Power: 18
mturcios777 will become famous soon enough
What type of object is mymodel, and how is it declared/initialized?
mturcios777 is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem About Running Fluent In Linux mitra FLUENT 13 September 1, 2015 08:33
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
wmake compiling Problem with OF1.5 openTom OpenFOAM Installation 4 May 3, 2009 14:44
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

All times are GMT -4. The time now is 08:30.