linker error and solution

Help
Jonathan
2005-09-01
2013-03-12
  • Jonathan
    Jonathan
    2005-09-01

    When I was getting linker errors saying _memset and other string.h functions were undefined symbols, I found after some searching that the Makefile in sdcc/device/lib/pic16/libc didn't include string in the libraries. Once I changed the line:

    SUBDIRS = ctype delay stdio stdlib utils

    to

    SUBDIRS = ctype delay stdio stdlib string utils

    My code compiled fine. Should I submit a patch for this?

    Regards,
    Jonathan

     
    • Raphael Neider
      Raphael Neider
      2005-09-05

      You are perfectly right, "string" escaped my attention while writing the new Makefiles.
      I fixed this in SDCC 2.5.3 #1105.
      Thanks for the report and for your search.

      Regards,
      Raphael