Menu

#2 two includes missing

open
nobody
None
5
2008-07-16
2008-07-16
Anonymous
No

Hi,

I had to do the following (see below) to make rtf2html compile. Then it ran nicely on my rtf file.

**************************************************************

diff -Naur rtf2html-0.2.0/rtf_keyword.h rtf2html-0.2.0-patched/rtf_keyword.h
--- rtf2html-0.2.0/rtf_keyword.h 2007-08-03 10:50:45.000000000 +0200
+++ rtf2html-0.2.0-patched/rtf_keyword.h 2008-07-16 16:11:23.000000000 +0200
@@ -1,8 +1,9 @@
#ifndef __RTF_KEYWORD_H__
#define __RTF_KEYWORD_H__

#include <string>
#include <map>
#include <ctype.h>
+#include <stdlib.h>

class rtf_keyword{
public:
@@ -88,7 +89,7 @@
if (param_str.empty())
param=-1;
else
- param=std::atoi(param_str.c_str());
+ param=atoi(param_str.c_str());
if (curchar==' ')
++iter;
keyword_map::iterator kw_pos=keymap.find(s_keyword);
diff -Naur rtf2html-0.2.0/rtf_table.cpp rtf2html-0.2.0-patched/rtf_table.cpp
--- rtf2html-0.2.0/rtf_table.cpp 2007-07-31 17:16:52.000000000 +0200
+++ rtf2html-0.2.0-patched/rtf_table.cpp 2008-07-16 16:10:06.000000000 +0200
@@ -4,6 +4,7 @@
#include <iostream>

#include <stdexcept>

#include <functional>

+#include <algorithm>

typedef std::set<int> intset;

Discussion


Log in to post a comment.