USB Driver Compilation issue



Im trying to compile a USB smartcard driver for WinCE 5.0. I'm using eVC
4.0++ with SP4. While compilation i have choosen StandardSDK 4.2 & I'm
compiling binaries for ARM & SH4 platforms. When I take WinCE 4.2 lib files
(Scard.lib,WinSCARD.lib,Smclib.lib,USBD.lib,Coredll.LIB) & compile my project
i dont have any issues. But if I take the same libraries from WinCE 5.0 I get
compilation errors

USBD.LIB(usbddrv.obj) : error LNK2005: _DllMain already defined in
SCARD.LIB(reader.obj)
USBD.LIB(usbddrv.obj) : warning LNK4006: _DllMain already defined in
SCARD.LIB(reader.obj); second definition ignored
Creating library SH4\RELEASE/SCRUSB.lib and object SH4\RELEASE/SCRUSB.exp
SH4\RELEASE/SCRUSB.dll : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.

Do we have to use any other SDK for compiling WinCE 5.0 driver??
.



Relevant Pages

  • USB Driver Compilation issue
    ... But if I take the same libraries from WinCE 5.0 I get ... SCARD.LIB; second definition ignored ... Do we have to use any other SDK for compiling WinCE 5.0 driver?? ...
    (microsoft.public.windowsce.embedded)
  • Re: Linking Libs on WinCE 6, x86
    ... Do all projects compiled for WinCE 6 have to be set to use Unicode? ... get our application to find/link a number of libraries. ... this lib file to be used using the platform builder sdk generator, ...
    (microsoft.public.windowsce.app.development)
  • Re: USB Driver Compilation issue
    ... When I replced this lib file in my workspace the driver binary got ... >> Im trying to compile a USB smartcard driver for WinCE 5.0. ... But if I take the same libraries from WinCE 5.0 I ...
    (microsoft.public.windowsce.embedded)
  • Re: Linking Libs on WinCE 6, x86
    ... Ah, a break through, thanks Paul. ... Do all projects compiled for WinCE 6 have to be set to use Unicode? ... That would explain why it would be complaining about "MessageBoxA" and ... get our application to find/link a number of libraries. ...
    (microsoft.public.windowsce.app.development)
  • Re: USB Driver Compilation issue
    ... The "stcusb" driver in CE ... >> Im trying to compile a USB smartcard driver for WinCE 5.0. ... But if I take the same libraries from WinCE 5.0 ...
    (microsoft.public.windowsce.embedded)