TinyXml works really great, however I wonder if it is possible to use something different from streams.
In fact, I'm trying to put TinyXml into a shared library, and streams generate a lot of troubles at run time (actually I really can't figure it out why, but that's another problem). For instance the application using the library where I put TinyXml crashes as soon it encounters the ostringstream in the TiXmlAttribute::Print method (while trying to save the Document), with an error message like "...basic_ostringstream... referenced symbol not found".
Since this happens only with streams, I have replaced them throughout all the rest of the code, but before changing TinyXml, I would like to know if you have any suggestion.
Thanks,
Luca
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sounds like you found a bug -- the streaming stuff is brand spanking new and still "beta". Please, please, please post a bug and include a test file that crashes tinyxml. Also include OS / compiler info.
The 1.x.y versions of TinyXml don't use streams, and will continue to be made available.
thanks,
lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-04-18
The project that uses TinyXml is rather large and built with lot of shared libraries (an executable loads a first library, which in turns loads another library that finally uses the TinyXml - again in another library!). Moreover it's plenty of threads.
So I tried to replicate the problem in a smaller project, but in that case it runs fine.
Therefore, I'm not sure it's bug in TinyXml: it more looks like it have been the basic_ostream<charT, traits> template that generated the failure.
In the "big" project I fixed the problem by including <iostream.h> instead of <iostream> and compiling with the -library=iostream,Cstd option. I don't know if that is the definitive solution; for now it all seems to be stable.
Hope this helps for the moment. However, I'll let you know if I found something more precise.
Luca
By the way, I'm working with Sun WorkShop 6 on a Pentium III, with SunOS 5.8 and CDE 1.4.1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
TinyXml works really great, however I wonder if it is possible to use something different from streams.
In fact, I'm trying to put TinyXml into a shared library, and streams generate a lot of troubles at run time (actually I really can't figure it out why, but that's another problem). For instance the application using the library where I put TinyXml crashes as soon it encounters the ostringstream in the TiXmlAttribute::Print method (while trying to save the Document), with an error message like "...basic_ostringstream... referenced symbol not found".
Since this happens only with streams, I have replaced them throughout all the rest of the code, but before changing TinyXml, I would like to know if you have any suggestion.
Thanks,
Luca
Sounds like you found a bug -- the streaming stuff is brand spanking new and still "beta". Please, please, please post a bug and include a test file that crashes tinyxml. Also include OS / compiler info.
The 1.x.y versions of TinyXml don't use streams, and will continue to be made available.
thanks,
lee
The project that uses TinyXml is rather large and built with lot of shared libraries (an executable loads a first library, which in turns loads another library that finally uses the TinyXml - again in another library!). Moreover it's plenty of threads.
So I tried to replicate the problem in a smaller project, but in that case it runs fine.
Therefore, I'm not sure it's bug in TinyXml: it more looks like it have been the basic_ostream<charT, traits> template that generated the failure.
In the "big" project I fixed the problem by including <iostream.h> instead of <iostream> and compiling with the -library=iostream,Cstd option. I don't know if that is the definitive solution; for now it all seems to be stable.
Hope this helps for the moment. However, I'll let you know if I found something more precise.
Luca
By the way, I'm working with Sun WorkShop 6 on a Pentium III, with SunOS 5.8 and CDE 1.4.1.
Threads & STL can be a bad mix. Check out the Optional STL proposal and see what you think.
lee