Hello, if MinGW is any similar to MSVC concerning basic behavior of static / dynamic libraries, you need to compile Crypto++ as static library, where the output only is a .a or .lib file. Then there will be no dependency on the .dll and hence it will run everywhere. This article may help you: http://www.codeproject.com/Articles/84461/MinGW-Static-and-Dynamic-Libraries Kind Regards
JPM Am Donnerstag, 1. Mai 2014 09:41:47 UTC+2 schrieb Jo Win: > > Hello, > > I just have a little question. I compiled the library on my x64 Windows 7 > with MingW (g++). So I got a cryptopp.dll and a libcryptopp.a. I downloaded > a random example programm and compiled it like > > g++.exe main.cpp -I"C:/cryptopp" -L"C:/cryptopp" -lcryptopp -o crypto > > Output is crypto.exe with 215 kilobyte. It works perfectly (with the dll) > > > > Then I wanted to make it static > > g++.exe main.cpp -I"C:/cryptopp" -L"C:/cryptopp" -static -lcryptopp -o > crypto > > Output is crypto.exe with 1.521 kilobyte. But this file still requires the > dll, but I need a portable exe-file. > > > Kind regards > -- -- 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. --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
