Re: Linking error

"Dan Nicholson" <[email protected]> Tue, 27 Nov 2007 11:26:32 -0800
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
On Nov 27, 2007 3:04 AM,  <[email protected]> wrote:
>
> g++.exe -D__DEBUG__ main.o
> ../../SRLGrp/BoostLib/boost_1_34_1/libs/graph/src/graphml.o  -o
> "graphml.exe" -L"C:/Dev-Cpp/lib"  -lgmon -pg  -g3
>
> ../../SRLGrp/BoostLib/boost_1_34_1/libs/graph/src/graphml.o(.text$_ZN14graphml_reader3runERSi[graphml_reader::run(std::basic_istream<char,
> std::char_traits<char> >&)]+0x73): In function
> `ZN5boost22undirected_graph_errorD0Ev':
> C:/SRLGrp/BoostLib/boost_1_34_1/boost/graph/graphviz.hpp: undefined
> reference to `XML_ParserCreateNS'

You need to actually link the program with -lexpat. I don't know how
this build is setup, but it doesn't seem to know about your expat
installation. This is really more of a question for the boost people.

http://www.boost.org/more/getting_started/windows.html#in-case-of-build-errors

--
Dan