I am trying to make a program that uses mbedtls but I am having trouble getting the gcc command to work properly.
main.c
thpool.c
thpool.h
mbedtls[Folder]
all the .h files of mbedtls
library[Folder]
all the .c and .o files of mbedtls
I current compile this program with the command..
gcc main.c thpool.c -pthread -o main
But since I have added a mbedtls function and code, it gives me the error..
/usr/bin/ld: /tmp/ccNV32fk.o: in function `p':
main.c:(.text+0x105): undefined reference to `mbedtls_aes_setkey_enc'
collect2: error: ld returned 1 exit status
I am unsure how to link these other files correctly.