This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

IAR linker Error[Li005]

I'm having compilation error, and got a couple of errors similar to the examples below:

Error[Li005]: no definition for "sha256_desc" [referenced from C:\Users\........\_build\main.o] 

and

Error[Li005]: no definition for "hash_memory" [referenced from C:\Users\..........\_build\hmac_init.o] 

I've already included the necessary includes in the main.c file where function is. But the hmac_init has no header file, so no include on it. I tried adding hmac_init.c at the left side of the IDE by right clicking on the folder Application -> Add -> Add Files... then add hmac_init.c file. However, it did not appear under the application folder even after doing so.

The supposedly 'missing' definition of eg "hash_memory" is indeed declared in the hmac_init file. I don't know how to proceed, please help.

Related