I\'m trying to compile my program and it returns this error :
usr/bin/ld: cannot find -l
in my makefile I use the c
I encountered the same error message.
I built the cmocka
as a so
and tried to link it to my executable.
But ld
always complains below:
/usr/bin/ld: cannot find -lcmocka
It turns out that there are 3 files generated after cmocka
is built:
1 and 2 are symbol links and only 3 is the real file.
I only copied the 1 to my library folder, where ld
failed to find the 3.
After I copied all 3, ld
works.