Thread: [Cppunit-devel] link errors with stl
Brought to you by:
blep
From: Lynn J. <lw...@sh...> - 2001-07-20 20:43:14
|
Hi, I was reading Ferdinando Ametrano's notes about using cppunit (msg #6221559) and am having a similar linking problem. I am using MSVC 6.0 on Win2K. I have successfully built the cppunitd and testrunnerd libraries, but am getting the linking error when I try to subclass TestCase in my own project (which uses stl classes). Any suggestions on fixing this problem? Thanks! Lynn -- Lynn Jones AI Software Engineer, SHAI-Seattle lwjones at shai-seattle dot com |
From: Baptiste L. <bl...@cl...> - 2001-07-21 09:06:04
|
Most likely, you are not using the same CRT lib as cppunit. You must use the Debug Multithreaded CRT lib (Project Setting/C++/Code Generation). Don't forget to enable RTTI too (Project Setting/C++/C++ Langage). ----- Original Message ----- From: "Lynn Jones" <lw...@sh...> To: <cpp...@li...> Sent: Friday, July 20, 2001 10:43 PM Subject: [Cppunit-devel] link errors with stl > Hi, > > I was reading Ferdinando Ametrano's notes about using cppunit > (msg #6221559) and am having a similar linking problem. I am using > MSVC 6.0 on Win2K. I have successfully built the cppunitd and > testrunnerd libraries, but am getting the linking error when I > try to subclass TestCase in my own project (which uses stl classes). > > Any suggestions on fixing this problem? > > Thanks! > Lynn > -- > Lynn Jones > AI Software Engineer, SHAI-Seattle > lwjones at shai-seattle dot com > > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > http://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: Baptiste L. <bl...@cl...> - 2001-07-21 09:25:25
|
----- Original Message ----- From: "Baptiste Lepilleur" <bl...@cl...> To: <cpp...@li...> Sent: Saturday, July 21, 2001 11:23 AM Subject: Re: [Cppunit-devel] link errors with stl > Most likely, you are not using the same CRT lib as cppunit. You must use the > Debug Multithreaded CRT lib (Project Setting/C++/Code Generation). > Don't forget to enable RTTI too (Project Setting/C++/C++ Langage). Read Debug Multithreaded **DLL** Sorry, Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Author of The Text Reformatter, a tool for fanfiction readers and writers. Language: English, French (Well, I'm French). |
From: Lynn J. <lw...@sh...> - 2001-07-23 23:00:15
|
Thank you for your reply. We were using these settings, but have determined that they are incompatible with the settings required by the rest of our project. Is there an available cppunit/testrunner project with target of a static library rather than a DLL? Or is that possible? Thanks! Lynn Baptiste Lepilleur wrote: > > ----- Original Message ----- > From: "Baptiste Lepilleur" <bl...@cl...> > To: <cpp...@li...> > Sent: Saturday, July 21, 2001 11:23 AM > Subject: Re: [Cppunit-devel] link errors with stl > > > Most likely, you are not using the same CRT lib as cppunit. You must use > the > > Debug Multithreaded CRT lib (Project Setting/C++/Code Generation). > > Don't forget to enable RTTI too (Project Setting/C++/C++ Langage). > > Read Debug Multithreaded **DLL** > > Sorry, > Baptiste. > --- > Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html > Author of The Text Reformatter, a tool for fanfiction readers and writers. > Language: English, French (Well, I'm French). > > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > http://lists.sourceforge.net/lists/listinfo/cppunit-devel -- Lynn Jones AI Software Engineer, SHAI-Seattle lw...@sh... |
From: Baptiste L. <bl...@cl...> - 2001-07-24 18:30:21
|
No. You'll need to add your own configuration or change the existing one. Is there a specific reason for using static debug lib ? DLL should link faster (this is a wild guess, I never actually measured). ----- Original Message ----- From: "Lynn Jones" <lw...@sh...> To: <cpp...@li...> Sent: Tuesday, July 24, 2001 1:00 AM Subject: Re: [Cppunit-devel] link errors with stl > Thank you for your reply. We were using these settings, but have > determined that they are incompatible with the settings required > by the rest of our project. Is there an available cppunit/testrunner > project with target of a static library rather than a DLL? Or is that > possible? > > Thanks! > Lynn > > Baptiste Lepilleur wrote: > > > > ----- Original Message ----- > > From: "Baptiste Lepilleur" <bl...@cl...> > > To: <cpp...@li...> > > Sent: Saturday, July 21, 2001 11:23 AM > > Subject: Re: [Cppunit-devel] link errors with stl > > > > > Most likely, you are not using the same CRT lib as cppunit. You must use > > the > > > Debug Multithreaded CRT lib (Project Setting/C++/Code Generation). > > > Don't forget to enable RTTI too (Project Setting/C++/C++ Langage). > > > > Read Debug Multithreaded **DLL** > > > > Sorry, > > Baptiste. > > --- > > Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html > > Author of The Text Reformatter, a tool for fanfiction readers and writers. > > Language: English, French (Well, I'm French). |
From: Lynn J. <lw...@sh...> - 2001-07-24 18:46:44
|
We are using some fixes to the stl library, as well as using a couple other static libraries of packages we are using. I'm not sure we have all the source to build stl into a dll, but we'll look into it. Thanks again for your answer, Lynn Baptiste Lepilleur wrote: > > No. > You'll need to add your own configuration or change the existing one. > > Is there a specific reason for using static debug lib ? DLL should link > faster (this is a wild guess, I never actually measured). > > ----- Original Message ----- > From: "Lynn Jones" <lw...@sh...> > To: <cpp...@li...> > Sent: Tuesday, July 24, 2001 1:00 AM > Subject: Re: [Cppunit-devel] link errors with stl > > > Thank you for your reply. We were using these settings, but have > > determined that they are incompatible with the settings required > > by the rest of our project. Is there an available cppunit/testrunner > > project with target of a static library rather than a DLL? Or is that > > possible? > > > > Thanks! > > Lynn > > > > Baptiste Lepilleur wrote: > > > > > > ----- Original Message ----- > > > From: "Baptiste Lepilleur" <bl...@cl...> > > > To: <cpp...@li...> > > > Sent: Saturday, July 21, 2001 11:23 AM > > > Subject: Re: [Cppunit-devel] link errors with stl > > > > > > > Most likely, you are not using the same CRT lib as cppunit. You must > use > > > the > > > > Debug Multithreaded CRT lib (Project Setting/C++/Code Generation). > > > > Don't forget to enable RTTI too (Project Setting/C++/C++ Langage). > > > > > > Read Debug Multithreaded **DLL** > > > > > > Sorry, > > > Baptiste. > > > --- > > > Baptiste Lepilleur <gai...@fr...> > http://gaiacrtn.free.fr/index.html > > > Author of The Text Reformatter, a tool for fanfiction readers and > writers. > > > Language: English, French (Well, I'm French). > > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > http://lists.sourceforge.net/lists/listinfo/cppunit-devel -- Lynn Jones AI Software Engineer, SHAI-Seattle lw...@sh... |
From: Baptiste L. <bl...@cl...> - 2001-07-21 09:07:40
|
Most likely, you are not using the same CRT lib as cppunit. You must use the Debug Multithreaded DLL CRT lib (Project Setting/C++/Code Generation). Don't forget to enable RTTI too (Project Setting/C++/C++ Langage). ----- Original Message ----- From: "Lynn Jones" <lw...@sh...> To: <cpp...@li...> Sent: Friday, July 20, 2001 10:43 PM Subject: [Cppunit-devel] link errors with stl > Hi, > > I was reading Ferdinando Ametrano's notes about using cppunit > (msg #6221559) and am having a similar linking problem. I am using > MSVC 6.0 on Win2K. I have successfully built the cppunitd and > testrunnerd libraries, but am getting the linking error when I > try to subclass TestCase in my own project (which uses stl classes). > > Any suggestions on fixing this problem? > > Thanks! > Lynn > -- > Lynn Jones > AI Software Engineer, SHAI-Seattle > lwjones at shai-seattle dot com > > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > http://lists.sourceforge.net/lists/listinfo/cppunit-devel > |