You get that error when you are using a function declared in a decls file in which the last part (DLL function name) does not exist in the specified DLL.
In other words
.lib "library.dll" <-------------\
Func():"Function" \
\_______/ \
| \
| \
this does not exist in here (or the DLL doesn't exist)