Page 1 of 1

Version 4 Installation

Posted: Wed Jun 22, 2011 4:46 pm
by swanflow
I have installed FC V4.3 Professional over V3 Student.
I compiled a FC routine to chip that worked OK with V3.
All reported OK except failure message comes up at the end:
'Error failed to open libc.pic18.lib or C:\Program Files\Source Boot\lib/libc.pic18.lib
Failure
Return Code=-2'
Solution please?

Re: Version 4 Installation

Posted: Wed Jun 22, 2011 8:38 pm
by medelec35
This caused by wrong settings within your compiler options (under chip menu).
Looking at your post, your error is:'

Code: Select all

Error failed to open libc.pic18.lib or C:\Program Files\Source Boot\lib/libc.pic18.lib
The Boot should be Boost. But the whole directory set-up looks wrong.
Here are settings:

Code: Select all

Flowcode v4.

Compiler Location: C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic16.flowcode.exe
Compiler Params: -v -t PIC%p "%f.c"

Linker Location: C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe
Linker Params: -ld "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic16.lib flowcode.pic16.lib rand.pic16.lib float.pic16.lib "%f.obj" -t PIC%p -d "%d" -p "%f"

You could try clicking on Restore Defaults and that should sort your problem out.

If you get a [INSTALLDIR] error then see:
http://www.matrixmultimedia.com/support ... f=22&t=612

If you still have a problem you could try reinstalling Flowcode.
Martin

Re: Version 4 Installation

Posted: Thu Jun 23, 2011 9:43 am
by swanflow
Hi Martin
I tried Restore Defaults.
But got the same error.
I will try re-installing FC.
Thanks

Re: Version 4 Installation

Posted: Fri Jun 24, 2011 10:02 am
by Steve
Did you try the "restore defaults" button in the "compiler options" window? This should reset the compiler toolchain.