linker/assembler problem, return code= -2

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

linker/assembler problem, return code= -2

Postby dannyvanneijenhoff » Thu Sep 30, 2010 9:56 am

Hello
I have (had) a problem with compling on 2 pc's (VISTA 32, AND W7 64BIT). With FC3 and FC4.
A few moths ago, there was no problem, have Norton antivirus installed on both PC's :!:
FC4 is working now (on VISTA), FC3 not.
Have someone a idee. thanks
------------------------------------------------
Changed in compiler options
in FC3 was, (and still is)
C\Program Files\Matrix Multimedia\Common\PPPv3\PPPv3.exe,
-cs 2 -chip PIC%p -nogui "%f.hex"
in FC4 is, is something changed AND IS WORKING, (on Vista)
C:\Program Files\Matrix Multimedia\Flowcode V4\tools\PICkit2\pk2cmd.exe,
-PPIC%p -F%f.hex -M -A5 -T -R -BC:\Program Files\Matrix Multimedia\Flowcode V4\tools\PICkit2\
-----------------------------------------------------------
file name: C:\werk back-up 1-6-07\PIC data en sotware\Data klaar\HT 1337 led lamp puls potm rev2.c
Generated by: Flowcode v3.6.11.53
Date: Thursday, September 30, 2010 09:12:53
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC12F683 "HT 1337 led lamp puls potm rev2.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
hT 1337 led lamp puls potm rev2.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\werk back-up 1-6-07\PIC data en sotware\Data klaar\HT 1337 led lamp puls potm rev2.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC12F683 -la -c2 -o "HT 1337 led lamp puls potm rev2.pp" -v -d _BOOSTC -d _PIC16
HT 1337 led lamp puls potm rev2.c success return code = 0

Launching the linker/assembler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib "HT 1337 led lamp puls potm rev2.obj" -t PIC12F683 -d "C:\werk back-up 1-6-07\PIC data en sotware\Data klaar" -p "HT 1337 led lamp puls potm rev2"
BoostLink Optimizing Linker Version 6.70

Failed to open:C:\werk back-up 1-6-07\PIC data en sotware\Data klaar/HT 1337 led lamp puls potm rev2.hex
failure Return code = -2
Last edited by dannyvanneijenhoff on Tue Oct 26, 2010 1:16 pm, edited 4 times in total.
dannyvanneijenhoff
Flowcode V4 User
 
Posts: 21
Joined: Thu Feb 07, 2008 7:59 am
Has thanked: 3 times
Have thanks: 0 time

Advertisement

Re: linker/assembler problem, return code= -2

Postby Benj » Thu Sep 30, 2010 1:01 pm

Hello,

The problem is likely due to the file path. If you save the file into a folder off the C drive without non alphanumeric characters then the program should compile correctly.

Eg.

c:\Flowcode work\Data Klaar\
Regards Ben Rowland - Matrix Technology Solutions Limited
For access to the Flowcode v4 forum topic - Click here
For access to the Flowcode v5 forum topic - Click here
User avatar
Benj
Matrix Staff
 
Posts: 8374
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix Multimedia Ltd
Has thanked: 1261 times
Have thanks: 1597 times

Re: linker/assembler problem, return code= -2

Postby dannyvanneijenhoff » Tue Oct 26, 2010 1:08 pm

Do you have other idee's, this is not working.
Thanks Danny

1 Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib "HT 1337rev3.obj" -t PIC12F683 -d "J:" -p "HT 1337rev3"
BoostLink Optimizing Linker Version 6.95
Error: Failed to open:libc.pic16.lib or C:\Program Files\SourceBoost\lib/libc.pic16.lib

2 Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib "HT 1337 rev3.obj" -t PIC12F683 -d "C:\Flowcode work\Data Klaar" -p "HT 1337 rev3"
BoostLink Optimizing Linker Version 6.95
Error: Failed to open:libc.pic16.lib or C:\Program Files\SourceBoost\lib/libc.pic16.lib
dannyvanneijenhoff
Flowcode V4 User
 
Posts: 21
Joined: Thu Feb 07, 2008 7:59 am
Has thanked: 3 times
Have thanks: 0 time

Re: linker/assembler problem, return code= -2

Postby Benj » Tue Oct 26, 2010 1:15 pm

Hello,

It looks like the compiler is looking in the wrong place for the linker.

If you go to Chip -> Compiler options in Flowcode and then check that the following values are as shown.

Flowcode v3.

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

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

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"
Regards Ben Rowland - Matrix Technology Solutions Limited
For access to the Flowcode v4 forum topic - Click here
For access to the Flowcode v5 forum topic - Click here
User avatar
Benj
Matrix Staff
 
Posts: 8374
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix Multimedia Ltd
Has thanked: 1261 times
Have thanks: 1597 times

Re: linker/assembler problem, return code= -2

Postby dannyvanneijenhoff » Tue Oct 26, 2010 1:25 pm

YES,
Only changed, C:\Program Files to C:\Program Files(x86) , 3 times
thanks
dannyvanneijenhoff
Flowcode V4 User
 
Posts: 21
Joined: Thu Feb 07, 2008 7:59 am
Has thanked: 3 times
Have thanks: 0 time


Return to Flowcode V2 & V3

Who is online

Users browsing this forum: No registered users and 2 guests