Note that there are some explanatory texts on larger screens.

plurals
  1. POhtmlcxx0.84 compilation error
    primarykey
    data
    text
    <p>I try to use <code>htmlcxx</code> to parse a webpage. The problem is, the example isn't compileable . </p> <p>I am getting this when I run <code>g++ webscrsp.cpp</code>: </p> <pre> /tmp/ccHiUM6o.o: In function `main': webscrsp.cpp:(.text+0x86): undefined reference to `htmlcxx::HTML::ParserSax::parse(std::basic_string, std::allocator > const&)' webscrsp.cpp:(.text+0xb8): undefined reference to `htmlcxx::HTML::operator >&, tree > > const&)' /tmp/ccHiUM6o.o: In function `htmlcxx::HTML::ParserDom::ParserDom()': webscrsp.cpp:(.text._ZN7htmlcxx4HTML9ParserDomC1Ev[htmlcxx::HTML::ParserDom::ParserDom()]+0x22): undefined reference to `vtable for htmlcxx::HTML::ParserDom' /tmp/ccHiUM6o.o: In function `htmlcxx::HTML::ParserDom::~ParserDom()': webscrsp.cpp:(.text._ZN7htmlcxx4HTML9ParserDomD1Ev[htmlcxx::HTML::ParserDom::~ParserDom()]+0x16): undefined reference to `vtable for htmlcxx::HTML::ParserDom' collect2: ld returned 1 exit status </pre> <p>my code is </p> <pre><code> #include &lt;string&gt; #include &lt;iostream&gt; #include &lt;sstream&gt; #include &lt;/home/lubhavan/htmlcxx-0.84/html/ParserDom.h&gt; using namespace std; using namespace htmlcxx; int main() { string html ="&lt;html &gt; &lt;head&gt; &lt;title &gt; hi iam titile &lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt; what can i do &lt;/p&gt; &lt;/body&gt; &lt;/html&gt;"; HTML::ParserDom parser; tree&lt;HTML::Node&gt; dom = parser.parseTree(html) ; cout &lt;&lt; dom &lt;&lt;endl; cout &lt;&lt; endl; return 0; } </code></pre> <p>Please help me as I have to do it very soon. I am unable to get the fault ...</p> <p>Thanks in advance ..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload