Discussions related to Visual Prolog
Posts: 12
Joined: 1 Jun 2007 14:51

Unable to use Lib file in C/C++ Project

Unread post by Rangarajan »

I created a 64 bit DLL and Lib of the "MyDll" project that is distributed with Examples. I then created a Visual Studio 2019 solution (command line program - x64 mode) to call the DLL function "touch". I added the MyDll.lib file as input to the Linker, giving its correct path. When I build the project, I get an error message:
"LNK1127 library is corrupt"and it points to this Lib.

However, when I do this (from Shell):
> dumpbin /exports MyDll.lib

it correctly shows the "touch" function exported from the LIB file.

What could be the problem?

Post Reply