From: Baptiste L. <gai...@fr...> - 2004-08-16 20:14:16
|
warning 4251 is 'normal'. You always get it when exporting class containing STL stuff in VC 6. Heap error aren't normal. I don't get any of those under vc 7.1. Try checking if all the projects use the same version of the run-time library. Baptiste. ----- Original Message ----- From: "Andre Baresel" <and...@gm...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Monday, August 16, 2004 8:38 PM Subject: [Cpptool-develop] Another question about DLL-Linking... > Hello Baptiste, > > with VC6 i get warnings C4251 when compiling the DLLs and under Python I > get many Heap-Check errors during the > execution of the code (with ignoring them the correct output is done). > > But these pointer problems seem to be not related... > > Some examples: > > f:\projects\cpptool\cppparser\include\rfta\cppparser\token.h(117) : > warning C4251: 'ids_' : class 'std::map<class > Parser::ConstString,unsigned int,struct std::less<class > Parser::ConstString>,class std::allocator<unsigned int> >' needs to have > dll-in terface to be used by clients of class 'Parser::TokenIdManager' > f:\projects\cpptool\cppparser\include\rfta\cppparser\token.h(119) : > warning C4251: 'texts_' : class 'std::map<unsigned int,class > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> >,struct std::less<unsigned int>,class s > td::allocator<class std::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> > > >' needs to have > dll-interface to be used by clients of class 'Parser::TokenIdManager' > f:\projects\cpptool\cppparser\include\rfta\cppparser\token.h(146) : > warning C4251: 'types_' : class 'std::map<class > Parser::ConstString,class Parser::TokenType,struct std::less<class > Parser::ConstString>,class std::allocator<class Parser::TokenType> > >' needs to have dll-interface to be used by clients of class > 'Parser::TokenTypeManager' > f:\projects\cpptool\cppparser\include\rfta\cppparser\token.h(148) : > warning C4251: 'names_' : class 'std::map<class Parser::TokenType,class > Parser::ConstString,struct std::less<class Parser::TokenType>,class > std::allocator<class Parser::ConstString> > >' needs to have dll-interface to be used by clients of class > 'Parser::TokenTypeManager' > f:\projects\cpptool\cppparser\include\rfta\cppparser\node.h(51) : > warning C4251: 'current_' : class 'boost::intrusive_ptr<class > Parser::Node>' needs to have dll-interface to be used by clients of > class 'Parser::NodeEnumerator' > f:\projects\cpptool\cppparser\include\rfta\cppparser\node.h(70) : > warning C4251: 'parents_' : class 'std::stack<class Parser::Node *,class > std::deque<class Parser::Node *,class std::allocator<class Parser::Node > *> > >' needs to have dll-interface to > be used by clients of class 'Parser::DepthFirstEnumerator' > f:\projects\cpptool\cppparser\include\rfta\cppparser\node.h(233) : > warning C4251: 'firstChild_' : class 'boost::intrusive_ptr<class > Parser::Node>' needs to have dll-interface to be used by clients of > class 'Parser::Node' > f:\projects\cpptool\cppparser\include\rfta\cppparser\node.h(235) : > warning C4251: 'nextSibling_' : class 'boost::intrusive_ptr<class > Parser::Node>' needs to have dll-interface to be used by clients of > class 'Parser::Node' > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Cpptool-develop mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpptool-develop > |