Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error mech.c: 232 type error: pointer expected

Status
Not open for further replies.

blunt80fi

Electrical
Jun 23, 2004
6
0
0
FI
Hello!

I'm trying to make matlab s-file from c-code, and when I mex the file, it
gives me this kind of error message:

error mech.c: 233 type error: pointer expected

For example in this line the code looks like this:

if(Niner <= 1)

I'm a rookie with c-code and s-files, and I would like to know how to
correct this.. I know what a pointer is, but I don't know what is
wrong in my case.

Thank you!
 
Replies continue below

Recommended for you

could you fill in a little more about the code, maybe a more complete listing? is the error generated by a compiler, or when matlab interprets the s-file? I'm not real familiar with s-code and matlab, but I could help with the C.
 
Status
Not open for further replies.
Back
Top