Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-11-03 Thread Lakshmi Chowdam
Thanks Jeff,

It is the problem of the Module-Definition file of one of project module. 
Now we are able to build the application successful.

Thanks for your support.

Thanks,
Lakshmi. 

On Tuesday, November 1, 2016 at 6:26:20 PM UTC+5:30, Jeffrey Walton wrote:
>
>
> > LNK2001 unresolved external symbol "public: virtual void __cdecl 
>> > 
>> CryptoPP::DL_SignatureMessageEncodingMethod_DSA::ComputeMessageRepresentative(class
>>  
>>
>> > CryptoPP::RandomNumberGenerator &,unsigned char const *,unsigned 
>> > __int64,class CryptoPP::HashTransformation &,struct std::pair> char 
>> > const *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const " 
>> > 
>> (?ComputeMessageRepresentative@DL_SignatureMessageEncodingMethod_DSA@CryptoPP@@UEBAXAEAVRandomNumberGenerator@2@PEBE_KAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE2@Z)
>>  
>>
>> > 
>> > LNK2001 unresolved external symbol "public: virtual bool __cdecl 
>> > 
>> CryptoPP::PK_DeterministicSignatureMessageEncodingMethod::VerifyMessageRepresentative(class
>>  
>>
>> > CryptoPP::HashTransformation &,struct std::pair> > *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const " 
>> > 
>> (?VerifyMessageRepresentative@PK_DeterministicSignatureMessageEncodingMethod@CryptoPP@@UEBA_NAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE_K@Z)
>>  
>>
>> > 
>> > Are these problems with the PlatformToolset is set to v120? 
>>
>> I can't duplicate the issue using the latest sources. That's under 
>> bother Vs2010.zip and Vs2010-dynamic.zip. For completeness, I 
>> performed a Build -> Batch Build -> Build All. The Build All builds 
>> all of the 24 configurations as described on the Visual Studio wiki 
>> page (
>> https://www.cryptopp.com/wiki/Visual_Studio#Projects_and_Configurations). 
>>
>>
>> I guess the next question to ask is, what version of the library are 
>> you using, and where did you get the library? As far as I know, a 
>> similar issue under Clang was cleared via 
>> https://github.com/weidai11/cryptopp/issues/300. Clang's fix broke 
>> Visual Studio momentarily, but it was cleared the same day. 
>>
>
> I just went back to the Crypto++ 5.6.5 ZIP and repeated the exercise with 
> the static and dynamic projects. Everything worked as expected.
>
> I'm guessing there's something wonky going on with your project 
> configuration. Did you include the same preprocessor macro definitions in 
> your project that Crypto++ uses? You can see what Crypto++ uses for them by 
> inspecting a project file's; see for example 
> https://github.com/weidai11/cryptopp/blob/master/cryptlib.vcxproj. You 
> can see what a macro does at https://cryptopp.com/wiki/Config.h.
>
> Jeff
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-11-01 Thread Jeffrey Walton


> > LNK2001 unresolved external symbol "public: virtual void __cdecl 
> > 
> CryptoPP::DL_SignatureMessageEncodingMethod_DSA::ComputeMessageRepresentative(class
>  
>
> > CryptoPP::RandomNumberGenerator &,unsigned char const *,unsigned 
> > __int64,class CryptoPP::HashTransformation &,struct std::pair char 
> > const *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const " 
> > 
> (?ComputeMessageRepresentative@DL_SignatureMessageEncodingMethod_DSA@CryptoPP@@UEBAXAEAVRandomNumberGenerator@2@PEBE_KAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE2@Z)
>  
>
> > 
> > LNK2001 unresolved external symbol "public: virtual bool __cdecl 
> > 
> CryptoPP::PK_DeterministicSignatureMessageEncodingMethod::VerifyMessageRepresentative(class
>  
>
> > CryptoPP::HashTransformation &,struct std::pair > *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const " 
> > 
> (?VerifyMessageRepresentative@PK_DeterministicSignatureMessageEncodingMethod@CryptoPP@@UEBA_NAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE_K@Z)
>  
>
> > 
> > Are these problems with the PlatformToolset is set to v120? 
>
> I can't duplicate the issue using the latest sources. That's under 
> bother Vs2010.zip and Vs2010-dynamic.zip. For completeness, I 
> performed a Build -> Batch Build -> Build All. The Build All builds 
> all of the 24 configurations as described on the Visual Studio wiki 
> page (
> https://www.cryptopp.com/wiki/Visual_Studio#Projects_and_Configurations). 
>
> I guess the next question to ask is, what version of the library are 
> you using, and where did you get the library? As far as I know, a 
> similar issue under Clang was cleared via 
> https://github.com/weidai11/cryptopp/issues/300. Clang's fix broke 
> Visual Studio momentarily, but it was cleared the same day. 
>

I just went back to the Crypto++ 5.6.5 ZIP and repeated the exercise with 
the static and dynamic projects. Everything worked as expected.

I'm guessing there's something wonky going on with your project 
configuration. Did you include the same preprocessor macro definitions in 
your project that Crypto++ uses? You can see what Crypto++ uses for them by 
inspecting a project file's; see for example 
https://github.com/weidai11/cryptopp/blob/master/cryptlib.vcxproj. You can 
see what a macro does at https://cryptopp.com/wiki/Config.h.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-11-01 Thread Jeffrey Walton
> Hi Jeff,
>
> I have used the provided pre-converted set of project files except
> v120
>
> I have created the library successfully and when I integrated in my
> application it produced couple of link errors as below:
>
> LNK2001 unresolved external symbol "public: virtual void __cdecl
> CryptoPP::DL_SignatureMessageEncodingMethod_DSA::ComputeMessageRepresentative(class
> CryptoPP::RandomNumberGenerator &,unsigned char const *,unsigned
> __int64,class CryptoPP::HashTransformation &,struct std::pair const *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const "
> (?ComputeMessageRepresentative@DL_SignatureMessageEncodingMethod_DSA@CryptoPP@@UEBAXAEAVRandomNumberGenerator@2@PEBE_KAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE2@Z)
>
> LNK2001 unresolved external symbol "public: virtual bool __cdecl
> CryptoPP::PK_DeterministicSignatureMessageEncodingMethod::VerifyMessageRepresentative(class
> CryptoPP::HashTransformation &,struct std::pair *,unsigned __int64>,bool,unsigned char *,unsigned __int64)const "
> (?VerifyMessageRepresentative@PK_DeterministicSignatureMessageEncodingMethod@CryptoPP@@UEBA_NAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE_K@Z)
>
> Are these problems with the PlatformToolset is set to v120?

I can't duplicate the issue using the latest sources. That's under
bother Vs2010.zip and Vs2010-dynamic.zip. For completeness, I
performed a Build -> Batch Build -> Build All. The Build All builds
all of the 24 configurations as described on the Visual Studio wiki
page (https://www.cryptopp.com/wiki/Visual_Studio#Projects_and_Configurations).

I guess the next question to ask is, what version of the library are
you using, and where did you get the library? As far as I know, a
similar issue under Clang was cleared via
https://github.com/weidai11/cryptopp/issues/300. Clang's fix broke
Visual Studio momentarily, but it was cleared the same day.

Issue 300 was cleared on September 22. The two surrounding releases
were Crypto++ 5.6.4 on September 11, and Crypto++ 5.6.5 on October 11.
There should be no release ZIPs in the wild that are half fixed.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-11-01 Thread Lakshmi Chowdam


On Tuesday, November 1, 2016 at 9:47:16 AM UTC+5:30, Lakshmi Chowdam wrote:
>
>
>
> On Monday, October 31, 2016 at 6:04:49 PM UTC+5:30, Jeffrey Walton wrote:
>>
>> > Changed the properties as: 
>> > 
>> > 1) Platform Toolset-> Visual Studio 2013 (v120) 
>> > 2) C/C++->Code Generation -> Runtime Library as Multi-threaded Debug 
>> DLL 
>> > (/MDd) (This configuration I used because of Json code expected /MDd) 
>> > 3) checked the corresponding build from the Build->Batch Build 
>> > 
>> > I am using MVSC 2015, SP3. 
>> >> 
>> >> 
>> >>> 
>> >>> When I compiled the code, I am getting many unresolved external 
>> symbols 
>> >>> linking errors(LNK2019) as below: 
>> >>> 
>> >> How did you set up your projects, and how are you linking to the 
>> library? 
>> > 
>> > 
>> > My project is with the Visual Studio 2013 (v120) and Runtime Library is 
>> not 
>> > selected any thing. This is a MFC Shared DLL and its using Unicode 
>> Character 
>> > Set 
>>
>> You can also get a pre-converted set of project files from 
>> https://cryptopp.com/wiki/File:Vs2010-dynamic.zip. 
>>
>> While you are on the wiki, you might want to visit 
>> https://cryptopp.com/wiki/Visual_Studio and 
>> https://cryptopp.com/wiki/FIPS_DLL. 
>>
>> The DLL is awful. If you are using it, then I would encourage you to 
>> switch to the static library. 
>>
>> Thanks Jeff, I will look into it.
>
 
>
>> Jeff 
>>
>


Hi Jeff, 

I have used the provided pre-converted set of project files 
except v120

I have created the library successfully and when I integrated in my 
application it produced couple of link errors as below:

LNK2001 unresolved external symbol "public: virtual void __cdecl 
CryptoPP::DL_SignatureMessageEncodingMethod_DSA::ComputeMessageRepresentative(class
 
CryptoPP::RandomNumberGenerator &,unsigned char const *,unsigned 
__int64,class CryptoPP::HashTransformation &,struct std::pair,bool,unsigned char *,unsigned __int64)const " 
(?ComputeMessageRepresentative@DL_SignatureMessageEncodingMethod_DSA@CryptoPP@@UEBAXAEAVRandomNumberGenerator@2@PEBE_KAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE2@Z)

LNK2001 unresolved external symbol "public: virtual bool __cdecl 
CryptoPP::PK_DeterministicSignatureMessageEncodingMethod::VerifyMessageRepresentative(class
 
CryptoPP::HashTransformation &,struct std::pair,bool,unsigned char *,unsigned __int64)const " 
(?VerifyMessageRepresentative@PK_DeterministicSignatureMessageEncodingMethod@CryptoPP@@UEBA_NAEAVHashTransformation@2@U?$pair@PEBE_K@std@@_NPEAE_K@Z)

Are these problems with the PlatformToolset is set to v120? 

Thanks,
Lakshmi.

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-10-31 Thread Lakshmi Chowdam


On Monday, October 31, 2016 at 6:04:49 PM UTC+5:30, Jeffrey Walton wrote:
>
> > Changed the properties as: 
> > 
> > 1) Platform Toolset-> Visual Studio 2013 (v120) 
> > 2) C/C++->Code Generation -> Runtime Library as Multi-threaded Debug DLL 
> > (/MDd) (This configuration I used because of Json code expected /MDd) 
> > 3) checked the corresponding build from the Build->Batch Build 
> > 
> > I am using MVSC 2015, SP3. 
> >> 
> >> 
> >>> 
> >>> When I compiled the code, I am getting many unresolved external 
> symbols 
> >>> linking errors(LNK2019) as below: 
> >>> 
> >> How did you set up your projects, and how are you linking to the 
> library? 
> > 
> > 
> > My project is with the Visual Studio 2013 (v120) and Runtime Library is 
> not 
> > selected any thing. This is a MFC Shared DLL and its using Unicode 
> Character 
> > Set 
>
> You can also get a pre-converted set of project files from 
> https://cryptopp.com/wiki/File:Vs2010-dynamic.zip. 
>
> While you are on the wiki, you might want to visit 
> https://cryptopp.com/wiki/Visual_Studio and 
> https://cryptopp.com/wiki/FIPS_DLL. 
>
> The DLL is awful. If you are using it, then I would encourage you to 
> switch to the static library. 
>
> Thanks Jeff, I will look into it.
 

> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-10-31 Thread Lakshmi Chowdam


On Monday, October 31, 2016 at 5:46:45 PM UTC+5:30, Jeffrey Walton wrote:
>
>
> and also, in the link 
>> property 
>> cryptopp_$(PlatformToolset).lib;%(AdditionalDependencies)
>>
>
> This does not look right to me. The static library is called cryptlib.lib. 
> I don't ever recall seeing it named like cryptlib_v120.lib.
>

Yes, the static library created as cryptlib.lib, bur for my requirement it 
is renamed  based on the PlatformToolset.

>
> Can you verify the filename?
>
> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-10-31 Thread Jeffrey Walton
> Changed the properties as:
>
> 1) Platform Toolset-> Visual Studio 2013 (v120)
> 2) C/C++->Code Generation -> Runtime Library as Multi-threaded Debug DLL
> (/MDd) (This configuration I used because of Json code expected /MDd)
> 3) checked the corresponding build from the Build->Batch Build
>
> I am using MVSC 2015, SP3.
>>
>>
>>>
>>> When I compiled the code, I am getting many unresolved external symbols
>>> linking errors(LNK2019) as below:
>>>
>> How did you set up your projects, and how are you linking to the library?
>
>
> My project is with the Visual Studio 2013 (v120) and Runtime Library is not
> selected any thing. This is a MFC Shared DLL and its using Unicode Character
> Set

You can also get a pre-converted set of project files from
https://cryptopp.com/wiki/File:Vs2010-dynamic.zip.

While you are on the wiki, you might want to visit
https://cryptopp.com/wiki/Visual_Studio and
https://cryptopp.com/wiki/FIPS_DLL.

The DLL is awful. If you are using it, then I would encourage you to
switch to the static library.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-10-31 Thread Jeffrey Walton


> and also, in the link 
> property 
> cryptopp_$(PlatformToolset).lib;%(AdditionalDependencies)
>

This does not look right to me. The static library is called cryptlib.lib. 
I don't ever recall seeing it named like cryptlib_v120.lib.

Can you verify the filename?

Jeff 

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-10-31 Thread Lakshmi Chowdam


On Monday, October 31, 2016 at 4:43:15 PM UTC+5:30, Jeffrey Walton wrote:
>
>
> I have built 64 bit crypto library for windows application(64 bit) with 
>> the option "Multi-threaded Debug DLL (/MDd)"
>>
>> How did you build it?
>

After downloaded the source code from the 
https://www.cryptopp.com/release565.html and by going through the url: 
http://www.codeproject.com/Articles/16388/Compiling-and-Integrating-Crypto-into-the-Microsof
 
.

Changed the properties as:

1) Platform Toolset-> Visual Studio 2013 (v120)
2) C/C++->Code Generation -> Runtime Library as Multi-threaded Debug DLL 
(/MDd) (This configuration I used because of Json code expected /MDd)
3) checked the corresponding build from the Build->Batch Build 

I am using MVSC 2015, SP3.  

>  
>
>> When I compiled the code, I am getting many unresolved external symbols 
>> linking errors(LNK2019) as below:
>>
>> How did you set up your projects, and how are you linking to the library?
>

My project is with the Visual Studio 2013 (v120) and Runtime Library is not 
selected any thing. This is a MFC Shared DLL and its using Unicode 
Character Set

I have placed the library in the Dependencies folder and linked with the 
below property in the project properties:

..\..\Dependencies\cryptopp\include;$(IncludePath)

 
..\..\Dependencies\cryptopp\lib\$(Platform)\$(Configuration);$(LibraryPath)

and also, in the link 
property 
cryptopp_$(PlatformToolset).lib;%(AdditionalDependencies)
 
Please let me know if you need more information on this?


> Jeff
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crypto 64 bit library produced unresolved external symbols linking errors(LNK2019) for Windows application

2016-10-31 Thread Jeffrey Walton


> I have built 64 bit crypto library for windows application(64 bit) with 
> the option "Multi-threaded Debug DLL (/MDd)"
>
> How did you build it?
 

> When I compiled the code, I am getting many unresolved external symbols 
> linking errors(LNK2019) as below:
>
> How did you set up your projects, and how are you linking to the library?

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.