How to specify linker script?

Help
Ed B.
2010-09-26
2013-03-12
  • Ed B.
    Ed B.
    2010-09-26

    I am trying to compile a test program, last error to deal with is the linker script. I am compiling for a p16f84a, but the linker script is for an p18f, and I don't find a way to change it. How do I specify the correct script?

     
  • Thierry BAZIN
    Thierry BAZIN
    2010-09-26

    Just use the -Wl options to specify to the linker glink the link script with the -s option like :

    -Wl-s/…./yourlinkscript.lkr