Jump to content
Paul Kellar

Linker Issue With Class

Recommended Posts

I have a class with one member, of type byte, (unsigned char). Linker is fine.

When I add a second member, also byte, the linker fails with unreferenced mul.

 

Any ideas, please?

 

Device is 16F877

Share this post


Link to post
Share on other sites

A bit of more info will help. Do you build from MPLAB? Have you added libc library to your project?

 

Pavel

Share this post


Link to post
Share on other sites
A bit of more info will help. Do you build from MPLAB? Have you added libc library to your project?

 

Pavel

 

Thanks, Pavel, that's just the clue I needed. All is now fixed.

 

I am indeed using MPLAB, and I hadn't added libc when I moved across. I also hadn't realised that an array of class instances would use a multiply.

 

Regards

 

Paul

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...