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
linker/assembler problem, return code= -2
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
linker/assembler problem, return code= -2
Last edited by dannyvanneijenhoff on Tue Oct 26, 2010 1:16 pm, edited 4 times in total.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: linker/assembler problem, return code= -2
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\
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 - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
Re: linker/assembler problem, return code= -2
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
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
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: linker/assembler problem, return code= -2
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"
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 - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
Re: linker/assembler problem, return code= -2
YES,
Only changed, C:\Program Files to C:\Program Files(x86) , 3 times
thanks
Only changed, C:\Program Files to C:\Program Files(x86) , 3 times
thanks