×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Error mech.c: 232 type error: pointer expected

Error mech.c: 232 type error: pointer expected

Error mech.c: 232 type error: pointer expected

(OP)
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!

RE: Error mech.c: 232 type error: pointer expected

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources