2 problems..
How do I get smclib.lib included into my platform

How do I succesfully link smclib.lib? Since I could not get it in my platform (using ARMVI) I copied it over manually and then tried compiling the smart card device driver... unforutnately I get linking errors. I am using platform builder 4.2. I also tried setting in the project setting an absolute path to the smclib.lib in the common folder. Nothing seems to resolve my link errors.

Re: Link smclib.lib by Geoff

Geoff
Mon Feb 09 11:25:04 CST 2004

What are your link errors and what does your sources file look like?
--
Geoff Smith
eMVP
==

"nreader" <anonymous@discussions.microsoft.com> wrote in message
news:499C46EA-0C89-468A-BDF2-B444E50CA54B@microsoft.com...
> 2 problems...
> How do I get smclib.lib included into my platform?
>
> How do I succesfully link smclib.lib? Since I could not get it in my
platform (using ARMVI) I copied it over manually and then tried compiling
the smart card device driver... unforutnately I get linking errors. I am
using platform builder 4.2. I also tried setting in the project setting an
absolute path to the smclib.lib in the common folder. Nothing seems to
resolve my link errors.



Re: Link smclib.lib by anonymous

anonymous
Mon Feb 09 12:16:07 CST 2004

Thanks
Here are the link errors
lpd_LH7A400_SCR_beta_001.obj : error LNK2019: unresolved external symbol __imp_SmartcardCreateLink referenced in function "struct _SMARTCARD_EXTENSION * __cdecl SCRLoadDevice(unsigned short *)" (?SCRLoadDevice@@YAPAU_SMARTCARD_EXTENSION@@PAG@Z
lpd_LH7A400_SCR_beta_001.obj : error LNK2019: unresolved external symbol __imp_ referenced in function "struct _SMARTCARD_EXTENSION * __cdecl SCRLoadDevice(unsigned short *)" (?SCRLoadDevice@@YAPAU_SMARTCARD_EXTENSION@@PAG@Z
LOCE_A400_BETA_002Rel/lpd_LH7A400_SCR_beta_001.dll : fatal error LNK1120: 2 unresolved external
Error PB2505: Error executing link.exe

My source code calls SmartcardCreateLink and SmartcardInitialize

SmartcardCreateLink(szFriendlyName,szDeviceName)
status = SmartcardInitialize(smartcardExtension)

In my project settings under link I include these libraries
coredll.lib winsock.lib smclib.lib

I also have tried the absolute path to smclib.lib as well

Also, here are all my #includes
#include <windows.h
#include <stdio.h
#include <stdlib.h
#include <smclib.h
#include <devload.h
#include <tchar.h>

Re: Link smclib.lib by Geoff

Geoff
Tue Feb 10 12:19:38 CST 2004

:)

- sources files are still used with the IDE.



--
Geoff Smith
eMVP
http://www.BSQUARE.com
==

"nreader" <anonymous@discussions.microsoft.com> wrote in message
news:E5665C10-85D4-42E2-953E-50E6AFC49B60@microsoft.com...
> I originally misunderstood you when you asked for sources... I thought you
meant source...
> Actually I am attempting to build through the IDE which I don't think uses
a sources file.



Re: Link smclib.lib by Geoff

Geoff
Tue Feb 10 12:27:21 CST 2004

Let me take a stab at this....

"__imp_SmartcardCreateLink "

"__imp" means implicit linkage - To switch it off use "/QRimplicit-import-"
on your CDEFINES in your sources file. At least on ARM that is the
appropriate option which should be good for you.
In the IDE you can add it in the settings dialog for SD.

Good Luck!

--
Geoff Smith
eMVP
==


"nreader" <anonymous@discussions.microsoft.com> wrote in message
news:55FD58B0-B217-407D-86CA-B8D6F4A1AC1A@microsoft.com...
> Thanks,
> Here are the link errors:
> lpd_LH7A400_SCR_beta_001.obj : error LNK2019: unresolved external symbol
__imp_SmartcardCreateLink referenced in function "struct
_SMARTCARD_EXTENSION * __cdecl SCRLoadDevice(unsigned short *)"
(?SCRLoadDevice@@YAPAU_SMARTCARD_EXTENSION@@PAG@Z)
> lpd_LH7A400_SCR_beta_001.obj : error LNK2019: unresolved external symbol
__imp_ referenced in function "struct _SMARTCARD_EXTENSION * __cdecl
SCRLoadDevice(unsigned short *)"
(?SCRLoadDevice@@YAPAU_SMARTCARD_EXTENSION@@PAG@Z)
> LOCE_A400_BETA_002Rel/lpd_LH7A400_SCR_beta_001.dll : fatal error LNK1120:
2 unresolved externals
> Error PB2505: Error executing link.exe.
>
> My source code calls SmartcardCreateLink and SmartcardInitialize:
>
> SmartcardCreateLink(szFriendlyName,szDeviceName);
> status = SmartcardInitialize(smartcardExtension);
>
> In my project settings under link I include these libraries:
> coredll.lib winsock.lib smclib.lib
>
> I also have tried the absolute path to smclib.lib as well.
>
> Also, here are all my #includes:
> #include <windows.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <smclib.h>
> #include <devload.h>
> #include <tchar.h>



Re: Link smclib.lib by anonymous

anonymous
Tue Feb 10 23:01:06 CST 2004

Dear Mr.nreader,

In ur Preprocessor definitions include SMCLIB_CE and _SMCLIBSYSTEM_ for including ur SMCLIB in the build.

Revert back if u need further clarifications

Thanks,
Cheers,
Lakshman