autolink include guard ?

26 Sep
2006
26 Sep
'06
4:54 p.m.
I notice that when my tests build I get Linking to lib file: libboost_serialization-vc71-mt-gd-1_35.lib Linking to lib file: libboost_serialization-vc71-mt-gd-1_35.lib I was curious as to why I go two such messages. Looking at auto_link.hpp I see that there is no include guard no a #pragma once. Is there a reason for this? Robert Ramey

26 Sep
26 Sep
6:16 p.m.
Robert Ramey wrote:
Yes, you can link to more than one library, so it does need to be capable of being included more than once (think about what happens if you are using serialisation, regex and filesystem in the same application). If you're seeing two messages then you must be including the header from more than one location (for the same library), which is potentially error prone? John.
6843
Age (days ago)
6843
Last active (days ago)
1 comments
2 participants
participants (2)
-
John Maddock
-
Robert Ramey