On Wed, May 27, 2009 at 9:36 AM, Gary <[email protected]> wrote:
>
> Hello!
>
> I'm implementing a Smart Card CSP(Cryptographic Service Provider).
> but I've not used of Windows Cryptographic Functions(in
> "wincrypt.h"),I've add "CryptoPP
> 5.5.2" library to my CSP for cryptographic operations.
>
> (I downloaded "CSPDK" package of microsoft site and I use of Visual C+
> + 2008;)
>
> My custom cryptographic codes are all ready,but I have several
> problems in final building
> and producing csp.dll and csp.lib files!
>
> I add the "CryptoPP" library and it's necessary header files to my CSP
> project,but when
> compiling it,I get 102 confusing errors which some of them are here:
>
> ------ Build started: Project: csp, Configuration: Debug Win32 ------
> Compiling...
> csp.c
> d:\cryptopp\config.h(102) : error C2061: syntax error : identifier
> 'CryptoPP'
Off the top of my head... it's a ".c" file ...  windows will compile
that as C, not C++, therefore including C++ code will break the
parser/compiler.  You'll want to rename csp.c -> csp.cpp (and make
sure any symbols being exported are properly marked extern "C" (and
the like)
-- 
Thomas Harning Jr.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to