Does anybody know how I can compile a DLL file in windows 7 of Crypto+ +? I installed mingw (2010-09-09) and started "mingw32-make all".
I really have no idea how to compile it without errors in Windows. Does anybody have an suggestions for me? Then I got some compiling errors. error log: g++ -o cryptest.exe -DNDEBUG -g -O2 -march=native -pipe bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o -L. -lcryptopp test.o: In function `Z14ForwardTcpPortPKcS0_S0_': C:\msys\1.0\home\home\cryptopp561/test.cpp:712: undefined reference to `setsock...@20' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:467: undefined reference to `wsagetoverlappedres...@20' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:370: undefined reference to `wsagetoverlappedres...@20' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:377: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12SetLastErrorEi': C:\msys\1.0\home\home\cryptopp561/socketft.cpp:298: undefined reference to `wsasetlaster...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:71: undefined reference to `soc...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:249: undefined reference to `sel...@20' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:232: undefined reference to `sel...@20' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:215: undefined reference to `ioctlsoc...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:207: undefined reference to `shutd...@8' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:435: undefined reference to `wsaeventsel...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:199: undefined reference to `r...@16' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:191: undefined reference to `s...@16' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:185: undefined reference to `getpeern...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:179: undefined reference to `getsockn...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:126: undefined reference to `lis...@8' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:120: undefined reference to `b...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:83: undefined reference to `closesoc...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:168: undefined reference to `acc...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:158: undefined reference to `conn...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:136: undefined reference to `inet_a...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:150: undefined reference to `ht...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:140: undefined reference to `gethostbyn...@4' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12SetLastErrorEi': C:\msys\1.0\home\home\cryptopp561/socketft.cpp:298: undefined reference to `wsasetlaster...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:416: undefined reference to `wsas...@28' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:423: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:102: undefined reference to `inet_a...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:111: undefined reference to `ht...@4' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12SetLastErrorEi': C:\msys\1.0\home\home\cryptopp561/socketft.cpp:298: undefined reference to `wsasetlaster...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:99: undefined reference to `ht...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:335: undefined reference to `wsar...@28' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:342: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:280: undefined reference to `wsaclea...@0' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:271: undefined reference to `wsastar...@8' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:261: undefined reference to `getservbyn...@8' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:264: undefined reference to `nt...@4' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:444: undefined reference to `wsaenumnetworkeve...@12' ./libcryptopp.a(socketft.o):C:\msys\1.0\home\home\cryptopp561/ socketft.cpp:289: undefined reference to `wsagetlaster...@0' collect2: ld returned 1 exit status mingw32-make: *** [cryptest.exe] Error 1 After that I started "mingw32-make cryptopp.dll" but then I got errors, too. error log: g++ -DNDEBUG -g -O2 -march=native -pipe -DCRYPTOPP_EXPORTS -c misc.cpp -o misc.export.o g++ -DNDEBUG -g -O2 -march=native -pipe -DCRYPTOPP_EXPORTS -c modes.cpp -o modes.export.o mingw32-make: *** No rule to make target `modexppc.export.o', needed by `cryptopp.dll'. Stop. -- 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.
