Jump to content

Recommended Posts

Hi,

 

When I compile i get no errors, yet at link time it seems to be having trouble with multiply and remainder functions. Do i need to manually add these libs?

 

Cheers,

Matt.

 

PS. The problem seems to be caused by performing reads/writes to a structure defined as:

 

typedef struct {
unsigned char preset_on;
unsigned char preset_off;
unsigned char repeat;
unsigned char channel;
unsigned char state;
unsigned char packet_sent;
} SWITCH;

static SWITCH switches[MAX_SWITCHES];

 

switches is a global, and i'm assuming its not acceptable to access the struct from multiple functions, even though they are called sequentially from main() ?

 

BoostLink Optimizing Linker Version 6.30

http://www.picant.com/c2c/c.html

Copyright© 2004-2006 Pavel Baranov

Copyright© 2004-2006 David Hobday

 

 

Optimisation level:1

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

Error: Unresolved external function:'__mul_8_8__8(unsigned char,unsigned char)'

 

Error: Unresolved external symbol, function:__mul_8_8__8

 

 

Failure

BUILD SUCCEEDED: Wed Feb 15 20:10:15 2006

Edited by doozer
Link to post
Share on other sites

Ok the plot thickens. I was trying to create a simple hello world project in SourceBoost that i could send in to show the problem - and of course couldn't get it to happen.

 

So i then created a project in SourceBoost exactly as I have in MPLAB and hit build. It builds fine.

 

Why do i get link errors in MPLAB, but it links fine inside SourceBoost? I'd love to use SourceBoost but i can't program using the ICD2 from it, and for some reason I can't import the .hex to MPLAB to get it to program it... but that's a discussion for another post :blink:

Edited by doozer
Link to post
Share on other sites
Ok the plot thickens.  I was trying to create a simple hello world project in SourceBoost that i could send in to show the problem - and of course couldn't get it to happen.

 

So i then created a project in SourceBoost exactly as I have in MPLAB and hit build.  It builds fine.

 

Why do i get link errors in MPLAB, but it links fine inside SourceBoost?  I'd love to use SourceBoost but i can't program using the ICD2 from it, and for some reason I can't import the .hex to MPLAB to get it to program it... but that's a discussion for another post :blink:

 

You need the libc library to be linked to your code. When linking under SourceBoost libc is added to the linker command line by ide. Under MPLAB you have to do it yourself. This is described in the BoostC documentation in its part about MPLAB integration.

 

Regards,

Pavel

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...