Jump to content
Sign in to follow this  
Guest Joe

Linker Fails Without Errors

Recommended Posts

Guest Joe
Compiling...

 

"C:\Program Files\SourceBoost\boostc.pic18.exe" -t PIC18F1220  ServoSwitch.c

 

BoostC Optimizing C Compiler Version 2.0.1 Beta (for PIC18 architecture)

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

Copyright© 2004-2005 Pavel Baranov

Copyright© 2004-2005 David Hobday

 

 

success

Done

 

 

 

Linking...

 

"C:\Program Files\SourceBoost\linker.exe" /ld "C:\Program Files\SourceBoost\lib" libc.pic18.lib ServoSwitch.obj /t 18F1220 /d F:\projects\ServoSwitch\Code /p ServoSwitch

 

BoostLink Optimizing Linker Version 2.0.1 Beta

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

Copyright© 2004-2005 Pavel Baranov

Copyright© 2004-2005 David Hobday

 

 

Warning: Unable to successfully create 'delay_us' for target with clock freq 8000000 Hz

Warning unreferenced functions removed:

  EepromWrite  in: ServoSwitch.c

  SaveSystemData  in: ServoSwitch.c

  EEPROM_Refresh  in: ServoSwitch.c

 

Warning: function never returns: 'fn'

 

Failed

Done

 

 

No error messages!! -- so what's wrong?

Share this post


Link to post
Share on other sites

Joe,

 

Sounds like linker finally quit with an abnormal program termination.

 

Please send the project that has this problem to support@picant.com

 

Regards

Dave

Share this post


Link to post
Share on other sites
Guest Joe
Joe,

 

Sounds like linker finally quit with an abnormal program termination.

 

Please send the project that has this problem to support@picant.com

 

Regards

Dave

 

 

Mail sent...

Share this post


Link to post
Share on other sites
Guest Joe

I've managed to isolate the code that is causing the error...

 

#include <system.h>

struct
{
   char foo[2];
}sys;

void main()
{
   char x = 1;
   sys.foo[x] = 0;
}

 

Hope this helps to fix it, and will make it into the next release.

 

When is the next release?

Share this post


Link to post
Share on other sites
When is the next release?

 

The current compiler release will expire at the end of March. We'll do another release before that.

 

Regards,

Pavel

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...
Sign in to follow this  

×
×
  • Create New...