Opened 6 years ago
Last modified 6 years ago
#12186 new Bugs
Inclusion order for labeled_graph
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | compilation failure | Cc: |
Description
Hi,
It looks like the labeled_graph header has some unmet dependencies. If labeled_graph is the first boost graph include compilation will fail. If it is not the first (e.g. after adjacency_list) compilation suceeds. I am using boost 1.54. Sorry I have no idea if this has been fixed in later versions.
Ex. 1 compilation fails
#include "boost/graph/labeled_graph.hpp" #include "boost/graph/adjacency_list.hpp" int main(int,char*[]) { }
Ex. 2 compilation succeeds with include order swapped.
#include "boost/graph/adjacency_list.hpp" #include "boost/graph/labeled_graph.hpp" int main(int,char*[]) { }
Attachments (1)
Change History (3)
follow-up: 2 comment:1 by , 6 years ago
comment:2 by , 6 years ago
Replying to Murray Cumming <murrayc@…>:
What is the compilation error?
Just uploaded a it in a file. Let me know if you would prefer it copied into a comment (so you don't need to download it).
What is the compilation error?