oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.35k stars 269 forks source link

error LNK2001: unresolved external symbol __imp__interception_destroy_context #1

Closed candera closed 12 years ago

candera commented 12 years ago

I'm sure this is something simple I'm doing wrong, but when I try to compile the sample applications, I get errors like the following:

error LNK2001: unresolved external symbol __imp__interception_destroy_context   c:\data\projects\kdump\kdump.obj

I get one of those for every function that I'm using from the Interception library. I get the same error whether I'm trying to compile the samples or if I create my own project from scratch.

I've unzipped the library into the project folder, and added the lib\x86\release and include directories to the project settings under the C++ and Linker General configuration settings. What am I doing wrong?

oblitum commented 12 years ago

Take a look whether you are trying to build the debug version of the samples, I remember they where linking against lib\x86\debug, lib\x64\debug, etc. If you want to build the samples with the debug configuration, you will need to build the Interception library for debug too, or change the library directory of the debug configurations to use the release directory. To rapidly check whether this is the problem, change the configuration to release and build again to see whether this link problems vanish. Do this for some sample please, and them, if it works, create your own and copy the sample project configurations like the defines, library directories and libraries.

candera commented 12 years ago

Yep, that was indeed the issue. Thanks.

As a side note, do you want me to report future issues here or via email?

oblitum commented 12 years ago

Over here is better ;-)

candera commented 12 years ago

Will do.