7 Replies Latest reply on Feb 22, 2014 6:38 AM by JoMe_264151

    Simplke Task, Feeling Stupid


      I am trying to add Avagadro's tinyprintf  librarey to a PSOC 4 design.


      So I take following steps -




      1) Project directory, add a folder, "User Code"


      2) Linker and compiler search directorys, add the above directory


      3) In the folder place the 2 key files, printf.c and printf.h


      4) Clean and build , and I get error




      C:\Users\Nerdsrus\Documents\PSOC Creator Projects\Jim Dad Pioneer LCD Display\Jim Dad Pioneer LCD Display.cydsn/.\main.c:41: undefined reference to `tfp_sprintf'


      collect2.exe: error: ld returned 1 exit status


      The command 'arm-none-eabi-gcc.exe' failed with exit code '1'




      tfp_sprintf' is a function in the .h and..c files, tool essentially says it can't find it.




      Am I doing this right, eg. to generally add not a componernt but just .c and .h files ?




      Regards, Dana.