Boost logo

Boost Users :

From: Richard Howells (Richard_at_[hidden])
Date: 2003-07-29 15:34:27


Solomon,

I suspect they forgot to mark them inline. It would explain your problem.
Try changing them to ...

inline std::istream& operator >> ( std::istream& in, no_property& ) and
inline void getSubset( no_property& p, const no_property& s )

Best of luck,
Richard

----- Original Message -----
From: "Solomon Gibbs" <solomon.gibbs_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Tuesday, July 29, 2003 6:39 PM
Subject: [Boost-Users] Linking with BGL adjacency_list_io.hpp

> Hi,
>
> I'm having trouble linking code that uses adjacency_list_io.hpp.
>
> If the header is included is included in more than one compilation unit, I
> get "multiple definition of function" errors for the non-template
functions
> in adjacency_list_io.hpp:
>
> std::istream& operator >> ( std::istream& in, no_property& ) and
> void getSubset( no_property& p, const no_property& s )
>
> I'm sure that there is some C+ subtlety that I'm missing here, but I'm not
> familiar enough with the library to understand what it is. Shouldn't
> non-template function code be in a .cpp file to keep this sort of thing
from
> happening?
>
> - Solomon
>
>
>
>
>
>
>
>
>
> Info: <http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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