Re: Linker Error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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!




.



Relevant Pages

  • Re: BUG: byteswap functions missing in crt multithreaded debug dll
    ... Dan, ... It appears the byteswap functions are not implemented in any of the DLL versions of the CRT. ... You don't get a linker error when building release mode, because the function is performed inline ...
    (microsoft.public.vc.language)
  • Re: Deploying/Development without Visual Studio
    ... So should I use those under Platform Builder 4.2 or use the ones ... > from the CF Framework cab files? ... To rename .cab CF dll you can load thi files into Reflector and it will ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: binmod extraction for modules
    ... without a file header Platform Builder will ... Currently the Platform Builder doesn't accept the PDB without the DLL in ... the PB 5.0 tool binmod allows extraction of files from a nk.bin image. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: File In Use Linker Error
    ... dll I need to debug is called by a service I wrote. ... I went to Debug> Start ... > What is it in my set up that the debugging takes place in Platform Builder ... > get Platform Builder to release it without downloading the platform again ...
    (microsoft.public.windowsce.embedded)
  • Re: Symbol Pocket PC communicating with Zebra RW420 printer
    ... communicate with a Zebra RW420 printer. ... Platform Builder is used to ... build a OS device as the platform for writing the .dll and application. ...
    (microsoft.public.windowsce.embedded)