Boost logo

Boost-Build :

Subject: [Boost-build] problems building boost graph library
From: Cristina O. (kristiki__at_[hidden])
Date: 2009-03-28 07:15:53


Hello all,

I would like to use the optional graphml_reader of Boost graph library. Therefore, I have added to my PATH boost-jam, I have downloaded and builded expat and set both the EXPAT_LIBPATH and EXPAT_INCLUDE environment variables. I added "<find-shared-library>libexpatwMT" instead of "<find-shared-library>expat" and the line "<define>XML_SHARED" in jamfile.v2

After all this I try to build it, but I get graphml.obj : error LNK2019 and LNK1120 error, unresolved externals.

Does someone know what should I do? I have attached a screenshot of my cmd showing the errors.

Thank you!!!

Cristina

msvc.link.dll C:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-9.0\relea
se\threading-multi\boost_graph-vc90-mt-1_38.dll
   Creating library C:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-9.0
\release\threading-multi\boost_graph-vc90-mt-1_38.lib and object C:\boost\boost-
binary\boost\bin.v2\libs\graph\build\msvc-9.0\release\threading-multi\boost_grap
h-vc90-mt-1_38.exp
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_ErrorString r
eferenced in function "public: void __thiscall graphml_reader::run(class std::ba
sic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@@QAEXA
AV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_GetErrorCode
referenced in function "public: void __thiscall graphml_reader::run(class std::b
asic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@@QAEX
AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_GetCurrentLin
eNumber referenced in function "public: void __thiscall graphml_reader::run(clas
s std::basic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_read
er@@QAEXAAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_GetCurrentCol
umnNumber referenced in function "public: void __thiscall graphml_reader::run(cl
ass std::basic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_re
ader@@QAEXAAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_ParserFree re
ferenced in function "public: void __thiscall graphml_reader::run(class std::bas
ic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@@QAEXAA
V?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_Parse referen
ced in function "public: void __thiscall graphml_reader::run(class std::basic_is
tream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@@QAEXAAV?$ba
sic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_SetUserData r
eferenced in function "public: void __thiscall graphml_reader::run(class std::ba
sic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@@QAEXA
AV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_SetCharacterD
ataHandler referenced in function "public: void __thiscall graphml_reader::run(c
lass std::basic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_r
eader@@QAEXAAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_SetElementHan
dler referenced in function "public: void __thiscall graphml_reader::run(class s
td::basic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@
@QAEXAAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
graphml.obj : error LNK2019: unresolved external symbol __imp__XML_ParserCreateN
S referenced in function "public: void __thiscall graphml_reader::run(class std:
:basic_istream<char,struct std::char_traits<char> > &)" (?run_at_graphml_reader@@QA
EXAAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@@Z)
C:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-9.0\release\threading-m
ulti\boost_graph-vc90-mt-1_38.dll : fatal error LNK1120: 10 unresolved externals

        call "c:\Archivos de programa\Microsoft Visual Studio 9.0\VC\vcvarsall.b
at" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /subsystem:console /out:"C:\boost\boost-binary
\boost\bin.v2\libs\graph\build\msvc-9.0\release\threading-multi\boost_graph-vc90
-mt-1_38.dll" /IMPLIB:"C:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-
9.0\release\threading-multi\boost_graph-vc90-mt-1_38.lib" /LIBPATH:"C:\boost\Exp
at-2.0.1\Source\win32-vc9\bin\release" @"C:\boost\boost-binary\boost\bin.v2\li
bs\graph\build\msvc-9.0\release\threading-multi\boost_graph-vc90-mt-1_38.dll.rsp
"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link.dll C:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc
-9.0\release\threading-multi\boost_graph-vc90-mt-1_38.dll C:\boost\boost-binary\
boost\bin.v2\libs\graph\build\msvc-9.0\release\threading-multi\boost_graph-vc90-
mt-1_38.lib...
...removing C:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-9.0\release
\threading-multi\boost_graph-vc90-mt-1_38.lib
...skipped <pC:\boost\boost-install\lib>boost_graph-vc90-mt-1_38.dll for lack of
 <pC:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-9.0\release\threadin
g-multi>boost_graph-vc90-mt-1_38.dll...
...skipped <pC:\boost\boost-install\lib>boost_graph-vc90-mt-1_38.lib for lack of
 <pC:\boost\boost-binary\boost\bin.v2\libs\graph\build\msvc-9.0\release\threadin
g-multi>boost_graph-vc90-mt-1_38.lib...
...skipped <pC:\boost\boost-install\lib>boost_graph-vc90-mt.lib for lack of <pC:
\boost\boost-install\lib>boost_graph-vc90-mt-1_38.lib...
...failed updating 2 targets...
...skipped 3 targets...

_________________________________________________________________
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk