Jump to content
ddr

Sourceboost Linker Error

Recommended Posts

I recently upgraded to 7.2 from 6.95. I needed to support several new PIC controllers and had to upgrade. After I upgraded none of new projects will link including my old 6.95 projects. I never had a problem linking with 6.95.
It appears that the linker does not like spaces in files names. I suspect its a simple fix.
Enclosed below is the link log. Notice there are no double quotes around the Debug\16F1825 IO v1.obj parameter

Can anyone help me to resolve this problem?

 

Thanks.

 

Building...
"C:\Program Files\SourceBoost\boostlink_picmicro.exe" -idx 1 /ld "C:\Program Files\SourceBoost\lib" libc.pic16x.lib Debug\16F1825 IO v1.obj Debug\Power Meter v1.obj /t PIC16F1825 /d "Debug" /p "Power Meter v1"
Error: Failed to open:16F1825.
Error: Failed to open:IO.
Error: Failed to open:v1.obj
Error: Failed to open:Power.
Error: Failed to open:Meter.
Error: Failed to open:v1.obj
BoostLink Optimizing Linker Version 7.20
Copyright© 2004-2013 Pavel Baranov
Copyright© 2004-2013 David Hobday
failure
error: failed
Failed to locate output file 'Debug\Power Meter v1.hex'
Done
Failed

 

Share this post


Link to post
Share on other sites

I find that spaces are not liked for source and header files etc.

Change your spaces to underscore or something.

 

You can use spaces in directoriy, workspace and project names though

and Sourceboost will create output files which include spaces in them.

 

Don't try and link in old (V6) object files with new (V7) linker. Recompile.

 

Cheers

 

Reynard

 

Share this post


Link to post
Share on other sites
I have problem when link the files. The linker fails with error message
"
failure
Internal Error: Var not found id:0x10000D03:0x009:0x00000420
Done

"

and here is the whole message
Anyone could tell me what can I do ?
==========================================
Linking...
C:\Applications\SourceBoost721rc7\boostlink_picmicro.exe -idx 1 /ld C:\Applications\SourceBoost721rc7\lib libc.pic16x.lib Release\pinchBoost31.obj Release\pinch_main31.obj ..\..\..\..\Applications\SourceBoost\SourceBoost\Lib\adc.pic16x.lib ..\..\..\..\Applications\SourceBoost\SourceBoost\Lib\eeprom.pic16x.lib /t PIC16F1827 -o1 /d "Release" /p CodeGen31
BoostLink Optimizing Linker Version 7.21
Copyright© 2004-2013 Pavel Baranov
Copyright© 2004-2013 David Hobday
Optimisation level:1
Warning unreferenced functions removed:
RecordRead in: C:\Users\Sony\workspace\CodeGenTest2\pichardware31.c
failure
Internal Error: Var not found id:0x10000D03:0x009:0x00000420
Done

Share this post


Link to post
Share on other sites

Hi

 

It looks like you have one variable declared but not defined.

So the compiler doesn't complain when it is used (referenced) but latter the linker can't find it in noneof the source files.

 

In a nutshell you have somewere an "extern <vartype> <varname>" declaration but you are missing the corresponding "<vartype> <varname>" definition.

 

 

HIH

 

Best regards

Jorge

Edited by JorgeF

Share this post


Link to post
Share on other sites

Dear Jorge,

 

Thank a lot.

 

Do you have any suggestion as how to locate this error. The linker does not give any message to indicate the missing variable.

 

Happy New Year

 

Chen

Edited by robotchen

Share this post


Link to post
Share on other sites

Chen,

 

I have problem when link the files. The linker fails with error message
"
failure
Internal Error: Var not found id:0x10000D03:0x009:0x00000420
Done

"

and here is the whole message
Anyone could tell me what can I do ?
==========================================
Linking...
C:\Applications\SourceBoost721rc7\boostlink_picmicro.exe -idx 1 /ld C:\Applications\SourceBoost721rc7\lib libc.pic16x.lib Release\pinchBoost31.obj Release\pinch_main31.obj ..\..\..\..\Applications\SourceBoost\SourceBoost\Lib\adc.pic16x.lib ..\..\..\..\Applications\SourceBoost\SourceBoost\Lib\eeprom.pic16x.lib /t PIC16F1827 -o1 /d "Release" /p CodeGen31
BoostLink Optimizing Linker Version 7.21
Copyright© 2004-2013 Pavel Baranov
Copyright© 2004-2013 David Hobday
Optimisation level:1
Warning unreferenced functions removed:
RecordRead in: C:\Users\Sony\workspace\CodeGenTest2\pichardware31.c
failure
Internal Error: Var not found id:0x10000D03:0x009:0x00000420
Done

 

This is an Internal Error, ie something gone wrong between compiler and linker - which may or may not be a problem in your code.

To reproduce this problem we could really do with a simplified project that builds and demonstrates the problem.

 

Please send to support@sourceboost.com

 

Regards

Dave

Share this post


Link to post
Share on other sites

Hi

 

Right.

I just made a few test around my previous suggestion and noticed that the error for a misisng declaration is different.

 

But Dave alredy took care of it, so I'll shut up and listen. :)

 

Best regards

Jorge

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum 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...

×