[Expat-discuss] Linking error

Dan Nicholson dbn.lists at gmail.com
Tue Nov 27 20:26:32 CET 2007


On Nov 27, 2007 3:04 AM,  <abhishek.v at tcs.com> 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


More information about the Expat-discuss mailing list