Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi,
I have cryptopp 5.6.0 and in Unix i have it working. I have to port my code over to a 32bit windows box and am using vs2008. Is there a way I can get specific instructions on how to compile the cryptopp code to generate the lib file so i can then use it in vs2008?

when i simply ran it to generate the lib file i get
warnings like
c4081 expected newlone found
lnk4044 unrecognized option /lcryptopp ignored
A ton of lnk2005 errors
warning lnk4098 LIBCMTD conflicts with use of other libs. use /nodefaultlib library.
error: lnk1169 one more multiple defined symbols found.

i really need some step by step instructions on vs2008.

thanks


Update:
I was able to get it to work in vs2008. Just need to compile the program they provide in the cryptopp 5.6.0 in vs2008 and it generates a static library. then you have to make sure that YOUR solution is using multi threaded debug in the c/c++ code generation menu. also under the linker you need to add the lib file name and also in the .cpp file #pragma comment (lib,"cryptlib.lib");

this will make it work.

now the program compiles and links but i can't seem to execute it.
it keeps saying...ubale to start program "myprog.exe" the system cannot find the file specified"

can anyone help with that ? why does that happen and how do i make it point to the correct executable? (this is generated by vs2008. I am interested in people who are very familiar with this program and can tell me via configuration menu's etc what am i doing wrong...perhaps I have done something wrong in project creation or for example in the configuration properties there is an output directory in general tab. i am looking for something very particular.

thanks.
Posted
Updated 18-May-10 10:59am
v5

This site[^] is probably the best place to find the answer. Interestingly it suggests that a port for MSVC 2008 is not available.
 
Share this answer
 
v2
I just yesterday built crypto 5.6.0 in MSVC2008. It is available for MSVC2008 and there where no problem during compilation and linking.
 
Share this answer
 
djones2010 wrote:
it keeps saying...ubale to start program "myprog.exe" the system cannot find the file specificed"


What is "it", if you mean Windows, then I guess you are not clicking on the correct file. Other than that I cannot guess where your executable file may be.
 
Share this answer
 
CSS
Hi
I edit source code and I compiled successfully cryptopp 5.6.0 at
Visual Studio 2010.
Pics:
http://i50.tinypic.com/bgcy21.jpg
http://i49.tinypic.com/5mn8jr.jpg
http://i45.tinypic.com/jjl6p1.jpg
E-mail me at: bill.johnson3l33t@gmail.com
and I will send edited source.
Regards
Bill
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900