>From a Google search, it seems this error could be caused by multiple
installations of MinGW. Try doing a clean installation of MinGW on
another system and see if that fixes the problem. If not, and no one
else here can help, I suggest that you post the question to a MinGW
support group, since it seems to have more to do with MinGW than with
Crypto++.

On Feb 1, 5:00 pm, "craftsman" <[EMAIL PROTECTED]> wrote:
> Hello everyone!
>
> I make'd the crypto++ with MinGW's gcc 3.2.3 and everything worked
> fine.
>
> Then I tied to compile it with gcc 3.4.2, which compiled everything
> and linked the libcryptopp.a with no errors,
> but when it started to link cryptest.exe, I got the following errors:
>
> g++ -o cryptest.exe -g -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  -lws2_32
>
> /mingw/lib/libstdc++.a(eh_personality.o): multiple definition of
> `typeinfo for std::exception'
> bench.o:C:/Qt/cryptopp521_for_422/lubyrack.h:(.rdata
> $_ZTISt9exception[typeinfo for std::exception]+0x0): first defined
> here
> /mingw/lib/libstdc++.a(eh_personality.o): multiple definition of
> `typeinfo namefor std::exception'
> bench.o:C:/Qt/cryptopp521_for_422/lubyrack.h:(.rdata
> $_ZTSSt9exception[typeinfo name for std::exception]+0x0): first
> defined here
> /mingw/lib/libstdc++.a(new_opv.o): multiple definition of `typeinfo
> for std::bad_alloc'
> ./libcryptopp.a(misc.o):C:/Qt/cryptopp521_for_422/misc.cpp:(.rdata
> $_ZTISt9bad_alloc[typeinfo for std::bad_alloc]+0x0): first defined
> here
> /mingw/lib/libstdc++.a(new_opv.o): multiple definition of `typeinfo
> name for std::bad_alloc'
> ./libcryptopp.a(misc.o):C:/Qt/cryptopp521_for_422/misc.cpp:(.rdata
> $_ZTSSt9bad_alloc[typeinfo name for std::bad_alloc]+0x0): first
> defined here
> datatest.o: In function
> `ZN8CryptoPP11UnflushableINS_6FilterEE12ChannelFlushERKSsbib'
> :C:/Qt/cryptopp521_for_422/simple.h:(.text
> $_ZNSt23_Rb_tree_const_iteratorISt4pairIKSsSsEEppEv[std::_Rb_tree_const_iterator<std::pair<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const,
> std::basic_string<char,std::char_traits<char>, std::allocator<char> >> 
> >::operator++()]+0x13): undefined reference to
>
> `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
> :C:/Qt/cryptopp521_for_422/simple.h:(.text
> $_ZNSt17_Rb_tree_iteratorISt4pairIKSsPvEEppEv[std::_Rb_tree_iterator<std::pair<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const, 
> void*>>::operator++()]+0x13): undefinedreference to
>
> `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
> ...
> more errors
> ...
> collect2: ld returned 1 exit status
> mingw32-make: *** [cryptest.exe] Error 1
>
> the only place where i found std:excepiton in cryptopp is in
> "cryptlib.h"
> Does it conflict with the 3.4.2 version of libstdc++.a ?
>
> Would you please help me solve this problem?
> I want to use cryptopp with Qt 4.2.2 wich can not be compiled with gcc
> 3.2.3


--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to