Please find here the log of the building the cryptopp library: Log of the error found:
g++ -DNDEBUG -g -O2 -march=native -pipe -c dlltest.cpp 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 Info: resolving std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage by linking to __imp___ZNSs4_Rep20_S_empty_rep_storageE (auto-import) Info: resolving std::cout by linking to __imp___ZSt4cout (auto- import) Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp___ZTVN10__cxxabiv120__si_class_type_infoE (auto-import) Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___ZTVN10__cxxabiv117__class_type_infoE (auto-import) Info: resolving vtable for __cxxabiv1::__vmi_class_type_info by linking to __imp___ZTVN10__cxxabiv121__vmi_class_type_infoE (auto- import) Info: resolving typeinfo for int by linking to __imp___ZTIi (auto- import) Info: resolving VTT for std::basic_fstream<char, std::char_traits<char> > by linking to __imp___ZTTSt13basic_fstreamIcSt11char_traitsIcEE (auto-import) Info: resolving std::cin by linking to __imp___ZSt3cin (auto-import) Info: resolving typeinfo for char const* by linking to __imp___ZTIPKc (auto-import) Info: resolving typeinfo for int const* by linking to __imp___ZTIPKi (auto-import) Info: resolving std::cerr by linking to __imp___ZSt4cerr (auto- import) Info: resolving vtable for std::basic_ios<char, std::char_traits<char> > by linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto- import) Info: resolving vtable for std::basic_fstream<char, std::char_traits<char> > by linking to __imp___ZTVSt13basic_fstreamIcSt11char_traitsIcEE (auto-import) Info: resolving vtable for __cxxabiv1::__pointer_type_info by linking to __imp___ZTVN10__cxxabiv119__pointer_type_infoE (auto-import) Info: resolving typeinfo for std::basic_ostream<char, std::char_traits<char> > by linking to __imp___ZTISo (auto-import) Info: resolving VTT for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import) Info: resolving vtable for std::basic_ifstream<char, std::char_traits<char> > by linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import) Info: resolving vtable for std::basic_filebuf<char, std::char_traits<char> > by linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import) Info: resolving vtable for std::basic_streambuf<char, std::char_traits<char> > by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import) Info: resolving typeinfo for unsigned char* by linking to __imp___ZTIPh (auto-import) Info: resolving typeinfo for bool by linking to __imp___ZTIb (auto- import) Info: resolving typeinfo for unsigned char const* by linking to __imp___ZTIPKh (auto-import) Info: resolving vtable for std::bad_alloc by linking to __imp___ZTVSt9bad_alloc (auto-import) Info: resolving vtable for __cxxabiv1::__enum_type_info by linking to __imp___ZTVN10__cxxabiv116__enum_type_infoE (auto-import) Info: resolving typeinfo for unsigned int by linking to __imp___ZTIj (auto-import) Info: resolving typeinfo for unsigned char by linking to __imp___ZTIh (auto-import) Info: resolving VTT for std::basic_ofstream<char, std::char_traits<char> > by linking to __imp___ZTTSt14basic_ofstreamIcSt11char_traitsIcEE (auto-import) Info: resolving vtable for std::basic_ofstream<char, std::char_traits<char> > by linking to __imp___ZTVSt14basic_ofstreamIcSt11char_traitsIcEE (auto-import) d:/omnetpp-4.1/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/ bin/ld.exe: warning: auto-importing has been activated without -- enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs. test.o: In function `Z14ForwardTcpPortPKcS0_S0_': D:\omnetpp-4.1\samples\TareK\cryptopp/test.cpp:712: undefined reference to `setsock...@20' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:467: undefined reference to `wsagetoverlappedres...@20' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:370: undefined reference to `wsagetoverlappedres...@20' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:377: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:416: undefined reference to `wsas...@28' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:423: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:335: undefined reference to `wsar...@28' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:342: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:71: undefined reference to `soc...@12' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:83: undefined reference to `closesoc...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:120: undefined reference to `b...@12' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:102: undefined reference to `inet_a...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:111: undefined reference to `ht...@4' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12SetLastErrorEi': D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:298: undefined reference to `wsasetlaster...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:99: undefined reference to `ht...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:126: undefined reference to `lis...@8' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:158: undefined reference to `conn...@12' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12GetLastErrorEv': D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:289: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:136: undefined reference to `inet_a...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:150: undefined reference to `ht...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:140: undefined reference to `gethostbyn...@4' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12SetLastErrorEi': D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:298: undefined reference to `wsasetlaster...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:168: undefined reference to `acc...@12' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12GetLastErrorEv': D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:289: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:179: undefined reference to `getsockn...@12' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:185: undefined reference to `getpeern...@12' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:191: undefined reference to `s...@16' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:199: undefined reference to `r...@16' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:207: undefined reference to `shutd...@8' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:435: undefined reference to `wsaeventsel...@12' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:215: undefined reference to `ioctlsoc...@12' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:232: undefined reference to `sel...@20' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:249: undefined reference to `sel...@20' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12SetLastErrorEi': D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:298: undefined reference to `wsasetlaster...@4' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:444: undefined reference to `wsaenumnetworkeve...@12' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12GetLastErrorEv': D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:289: undefined reference to `wsagetlaster...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:280: undefined reference to `wsaclea...@0' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:271: undefined reference to `wsastar...@8' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:261: undefined reference to `getservbyn...@8' ./libcryptopp.a(socketft.o):D:\omnetpp-4.1\samples\TareK\cryptopp/ socketft.cpp:264: undefined reference to `nt...@4' ./libcryptopp.a(socketft.o): In function `ZN8CryptoPP6Socket12GetLastErrorEv': Info: resolving typeinfo for std::basic_istream<char, std::char_traits<char> > by linking to __imp___ZTISi (auto-import) D:\omnetpp-4.1\samples\TareK\cryptopp/socketft.cpp:289: undefined reference to `wsagetlaster...@0' collect2: ld returned 1 exit status make: *** [cryptest.exe] Error 1 On 9 Oct, 20:05, Nathan Phillip Brink <[email protected]> wrote: > On Sat, Oct 09, 2010 at 06:42:31AM -0700, TSG wrote: > > Hi, > > I downloaded the cryptopp651 version, and i tried to compile it with > > omnet++ but i got erorrs in socketft.cpp file. > > Perhaps you might attach a build log which shows the exact error > messages you're getting and what arguments GCC is being called with, > etc. > > > I am using GCC(MinGW) compiler. > > > Please help me in this asap. > > Regards, > > > T > > -- > binki > > Look out for missing apostrophes! -- 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.
