W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2008

Re: Linkage problem with C++

From: Arnaud Desitter <arnaud02@users.sourceforge.net>
Date: Mon, 15 Sep 2008 10:26:07 +0100
Message-ID: <a240ddd00809150226y77b49c34we05a5c98938576d2@mail.gmail.com>
To: avinjoy@yahoo.com.ar
Cc: html-tidy@w3.org

2008/9/14 Alejo Vinjoy <avinjoy@yahoo.com.ar>:
> Hi, I downloaded and installed Html tidy from sourceforge CVS.
> I followed the instructions and installed it using autotools in gnuauto
> directory and it installed correctly.
> I verified that the libraries are in /usr/local/lib directory.
> When I' trying to compile and link a little program I made using this line
> g++ -g -Wall -otidys main.cpp -L ./usr/local/lib

Use:
g++ -g -Wall -I/usr/local/include main.cpp -L/path/to/tidy/lib -ltidy

Regards,

>
> I get these error messages:
> /home/loc/workspace/tidyReloaded/main.cpp:33: undefined reference to
> `tidyNodeGetType'
> /home/loc/workspace/tidyReloaded/main.cpp:33: undefined reference to
> `tidyNodeIsADDRESS'
> /home/loc/workspace/tidyReloaded/main.cpp:33: undefined reference to
> `tidyNodeIsAPPLET'
>
> and so on..
>
> Obviously I'm doing something wrong, could anyone point mein the right
> direction?
> Is this  g++ -g -Wall -otidys main.cpp -L ./usr/local/lib correct for
> compilation?
>
> Thanks,
> Alejo
>
>
>
> ________________________________
> Yahoo! Cocina
> Recetas prácticas y comida saludable
> Visitá http://ar.mujer.yahoo.com/cocina/
Received on Monday, 15 September 2008 09:28:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:59 GMT