PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

STLPort and MFC

Good day 2all.
I was using STLPort in my wxWidgets apps, and everything was going well.
But when I created new MFC (dialog-based) app, and #include <string>, I've got an error:
Code:
c:\stlport\stlport\new(48) : fatal error C1083: Cannot open include file: '../Armv4/new':

I have file "new" in that directory, not "new"

When I include #include <string>, #include <vector>, #include <map>, I get 10 errors:
Code:
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'class TLVField *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(class TLVField *,const class TLVField &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'class SSIContactListItem *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(class SSIContactListItem *,const class SSIContactListItem &)' being compiled
httpproxy.cpp
icqkid2.cpp
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'class SSIUINEntry *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(class SSIUINEntry *,const class SSIUINEntry &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'class SSIGroupEntry *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(class SSIGroupEntry *,const class SSIGroupEntry &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'struct stlp_std::pair<unsigned short,unsigned short> *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(struct stlp_std::pair<unsigned short,unsigned short> *,const struct stlp_std::pair<unsigned short,unsigned short
> &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'unsigned short *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(unsigned short *,const unsigned short &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'struct ICQKid2::SNACCacheEntry *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(struct ICQKid2::SNACCacheEntry *,const struct ICQKid2::SNACCacheEntry &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'class TLVField *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(class TLVField *,const class TLVField &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'struct stlp_std::pair<class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> >,cl
ass stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > > *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(struct stlp_std::pair<class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::alloca
tor<char> >,class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > > *,const struct stlp_std::pair<class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> >,c
lass stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > > &)' being compiled
c:\stlport\stlport\stl\_construct.h(115) : error C2665: 'new' : none of the 2 overloads can convert parameter 2 from type 'class ICQKidShortUserInfo *'
c:\stlport\stlport\stl\_vector.h(351) : see reference to function template instantiation 'void __cdecl stlp_std::_Copy_Construct(class ICQKidShortUserInfo *,const class ICQKidShortUserInfo &)' being compiled


I defined STLP_USE_MFC...
Help me please :roll:
This thread:
http://www.pocketmatrix.com/forums/view ... ht=stlport
may help with some of your STLPort problems