Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph] linking error read_graphviz
From: Tillmann Vogt (tillvogt_at_[hidden])
Date: 2010-02-21 13:49:44


Am 21.02.2010 16:13, schrieb Jeremiah Willcock:
>
>> I tried several compiler options and have all 8 variations of
>> libboost_graph-vc90 ... .lib in /boost/lib,
>> but no idea how the compiler magically choses the right one.
>
> I do not believe it does for BGL. You will need to add -lboost_graph
> or the equivalent for VC++ to your link flags, plus possibly a -L
> option pointing to boost/lib.
>
>> I don't know what to try next, since I get similar errors on Ubuntu
>> 9.10 (on Ubuntu boost 1.38 is preinstalled).
>
> Make sure you have -lboost_graph -Lboost/lib on your linker command
> line. That should fix the issue.

Thanks! Now it works.
In Visual Studio I added libboost_graph-vc90-mt.lib under configuration
properties -> Linker -> command line -> additional options
and also added #include <boost/regex.hpp> to graph-thingie.cpp

>
> -- Jeremiah Willcock
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net