Re: Linker Error
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 26 Sep 2006 15:25:29 -0700
I think you're misunderstanding how the build works. That library file,
hidparse_lib.lib is the implementation file for a DLL called hidparse.dll,
that is the code inside that DLL, not an import library for other DLLs to
use.
If you take a look at \PUBLIC\COMMON\CESYSGEN\MAKEFILE, you'll see how the
HID DLLs that are built by platform builder are linked. That's the pattern
you want to follow. So, for example kbdhid.dll is built using the following
library set:
@set TARGETLIBS=$(OWNSTATICLIB)
$(SG_OUTPUT_OAKLIB)\hidparse.lib
OWNSTATICLIB is going to be kbdhid_lib.lib and, as you see, they're linking
with the import library for the hidparse.dll file.
Paul T.
"kaza" <kaza@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4A49E9EB-49B9-4158-A188-F266B4CBD970@xxxxxxxxxxxxxxxx
By the way I got the same linker error and more when I tried to build
the HID examples that are provided with Platform Builder, so that rules
out that it's a coding problem.
Still waiting for suggestions!
"kaza" wrote:
Hi,
I am writing an HID client driver for a device, and when I build in
eMbedded Visual C++ 4.0, I get this linker error:
error LNK2019: unresolved external symbol _HidP_GetCaps referenced in
function _HIDDeviceAttach
I started from the HID examples provided with platform builder 5.0, and
I have HIDPI.H included, and I have the
"C:\WINCE500\PUBLIC\COMMON\OAK\LIB\X86\DEBUG" library path included for
the "Hidparse_lib.lib" library. What am I missing?
Thanks in advance!
.
- References:
- Linker Error
- From: kaza
- Linker Error
- Prev by Date: Re: Delays on Serial Write under WinCE?
- Next by Date: Setting caption programatically on DialogBox
- Previous by thread: Linker Error
- Next by thread: Re: Linker Error
- Index(es):
Relevant Pages
|