In the Microsoft documentation it is said that :
#pragma comment( lib, "commenstring" )
lib
Places a library-search record in the object file. This comment type must be accompanied by a commentstring parameter containing the name (and possibly the path) of the library that you want the linker to search.
It searches for a library not an object file.
You should have a .lib
file to include with this pragma
directive.
It should be something like :
#pragma comment( lib, "c.lib" )