- status: open --> closed
- assigned_to: David Tardon
- Milestone: untriaged --> current
librevenge-0.0.3 is bundled up with a library package for Scribus at http://sourceforge.net/projects/scribus/files/scribus-libs/
Attempting to compile with MS Visual Studio 2013 causes two types of errors. One of the errors, needing ".str()" has already been fixed in your code line, I'm not sure about the other. Here's part of the patch file I created after achieving the ability to successfully build:
-
-- librevenge-0.0.3/src/lib/RVNGTextTextGenerator.cpp Sat Aug 29 22:03:12 2015
+++ librevenge-0.0.3/src/lib/RVNGTextTextGenerator.cpp Thu Mar 03 21:17:29 2016
@@ -19,7 +19,6 @@
*/
#include <sstream>
-
#include <librevenge-generators/librevenge-generators.h>
// use the BELL code to represent a TAB for now
@@ -123,7 +122,7 @@
if (!m_impl->m_endnotes.str().empty())
{
*m_impl->m_stream << '\n';
- *m_impl->m_stream << m_impl->m_endnotes;
+ *m_impl->m_stream << m_impl->m_endnotes.str();
}
m_impl->m_document=m_impl->m_stream->str().c_str();
}
--- librevenge-0.0.3/src/lib/RVNGZipStream.cpp Wed Dec 23 10:50:32 2015
+++ librevenge-0.0.3/src/lib/RVNGZipStream.cpp Thu Mar 03 20:36:53 2016
@@ -21,6 +21,7 @@
#include <string>
#include <string.h>
#include <stdio.h>
+#include <algorithm>
#include <utility>
#include <zlib.h>
The errors generated by MS Visual Studio Express 2013 for this project are:
Error 1 error C2678: binary '<<' : no operator found which takes a left-hand operand of type 'std::ostringstream' (or there is no acceptable conversion) F:\Downloads\SourceForge\ScribusLibs\base\scribus-1.5.x-libs-msvc2012\librevenge-0.0.3\src\lib\RVNGTextTextGenerator.cpp 126 1 librevenge-generators
Error 2 error C2039: 'max' : is not a member of 'std' F:\Downloads\SourceForge\ScribusLibs\base\scribus-1.5.x-libs-msvc2012\librevenge-0.0.3\src\lib\RVNGZipStream.cpp 454 1 librevenge-stream
Error 3 error C2065: 'max' : undeclared identifier F:\Downloads\SourceForge\ScribusLibs\base\scribus-1.5.x-libs-msvc2012\librevenge-0.0.3\src\lib\RVNGZipStream.cpp 454 1 librevenge-stream