2 Replies Latest reply on Aug 12, 2020 6:44 AM by JoLl_4741886

    No build errors when an undefined function is called

    JoLl_4741886

      I'm a noob to PSOC Creator but have successfully built some projects exercising a TFT display over SPI. Now I'm being more ambitious and trying to use Segger's emWin library for controlling the display.

       

      The trouble is that I'm not getting build errors for when functions that I'm calling are not defined anywhere. I get a successful build when I shouldn't. I expect to get build errors if the linker can't find functions that have been declared in an include file but aren't defined in a 'c' file. Here is the code that should generate a link error:

       

       

      When I hover over the function DISP_Read8_A1 which was never declared and then click on "Go to definition", I do get the following message:

       

       

      The IDE was smart enough to tell me that the function wasn't defined, but the linker isn't?

       

      I would try stepping through the code to see what the compiler/linker has done, but I have way too many loose ends right now to try debugging.

      Thanks in advance for your help.