[Logic-security-developers] Re: LSS: Crypto++
Brought to you by:
computergeek693
From: Greg T. <gre...@ya...> - 2005-09-13 02:38:48
|
Hello, Alex. The easiest thing to do is to link statically to .LIBs. It requires less code, and the executable does not need to ship with the LIBs, unlike DLLs. To link the LIBs statically, put them in the same directory as your MSVC project file. Then, link to them explicitly using the linker settings under project properties. If you have compiled the libraries yourself, ensure that your symbol export settings are correct. Many things can go wrong at this stage. Once you have included the proper header files in the project that depends upon the library, it should compile fine. If unresolved externals still happen in the link phase, send me a RAR of your entire source tree. Good luck! - Greg --- Alexander Batzios <ba...@gm...> wrote: > Hi Greg, > I've finished a couple of Win32 tutorials, so now I > know the basic stuff of > creating windows, controls and handling events. I am > pretty comfortable in > that I can figure out the rest on my own. So I would > like to declare myself > available to help out with the GUI and ready to be > assigned a feature if > there is currently some work being done... > Also, I've been researching the cryptography > library issues. I find that > Cryptlib provides a higher level of abstraction than > Crypto++. Moreover, it > seems that every new release of Crypto++ has some > significant changes that > would require some re-writting, which I don't think > Cryptlib does. On the > other hand, for some reason I cannot possibly > comprehend, it seems that more > people use Crypto++ than Cryptlib. In terms of > licence agreements, they are > pretty much the same, and we can use them or parts > of their source code. And > I think Cryptlib is available (in that it provides > wrappers & stuff) for > nearly every OS and a large selection of languages. > Anyway, the thing is that for the last few days > I've been trying to run > some code that uses these two libs but I'm not able > to! I get a LNK2019 > error for CryptLib and for Crypto++ I get errors > about unknown certain > methods and identifiers that exist in Crypto++ > (.e.g. SHA256, which is a > class, is seen as an unknown identifier). > I've searched on the net and on a few books I have > about .NET but I have > but haven't been able to figure it out. I have a > feeling that I'm doing > something wrong importing the libraries and > directories. In Visual C++ .NET, > after creating a Win32 project and built a basic > gui, I went to project > properties and tried to put the directory of > Crypto++ or Cryptlib wherever > it would fit :) I did the same with the .LIB files. > Even copied them to > where VC++ keeps it's libs, and again, put their > names in every place of > project properties->Linker I could! Probably not > best approach, judging by > the results. > So if you could perhaps help a Java programmer > migrate to Windows by giving > me some very basic pointers on the steps someone > needs to take, in order to > use external libraries in VC++.NET, I'd appreciate > it! Both of Crypto++ and > Cryptlib create a pair of .LIB and .DLL when > compiled, and have a couple of > .h files I need to include. > Thanks, > Alex __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |