> However the linker still can`t find the script. I have also tried to call
> gplink alone with the -s argument and it doens`t find the file:
>
> C:\>gplink -m -s 16f916.lkr
> 16f916.lkr: No such file or directory
>
> The default linker script path C:\Program Files\gputils\lkr and i`m sure  
> the file is in there.

Then give its complete path (that's why I was mentioning whitespace in
arguments ...):

gplink -m -s "C:\Program Files\gputils\lkr\16f916.lkr" [...]

or either

sdcc -mpic14 -p16f916 -Wl,-s,"C:\Program Files\gputils\lkr\16f916.lkr"  
[...]

or

sdcc -mpic14 -p16f916 "-Wl,-s,C:\Program Files\gputils\lkr\16f916.lkr"  
[...]

or even

sdcc -mpic14 -p16f916 -Wl,-s,C:\Progra~1\gputils\lkr\16f916.lkr [...]

Anyways, gplink should (and does from your first post) find its default  
.lkr
automatically; just use

sdcc -mpic14 -p16f916 source.c

to compile your single-file project or

sdcc -mpic14 -p16f916 -c source1.c
sdcc -mpic14 -p16f916 -c source2.c
sdcc -mpic14 -p16f916 -c source3.c
sdcc -mpic14 -p16f916 main.c source1.o source2.o source3.o

for your multi-file project.

Best regards,
Raphael

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to