Opened 6 years ago

Last modified 6 years ago

#12186 new Bugs

Inclusion order for labeled_graph

Reported by: scott_paulin@… 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)

compilation_error.txt (8.4 KB ) - added by scott_paulin@… 6 years ago.
compilation error for first example

Download all attachments as: .zip

Change History (3)

comment:1 by Murray Cumming <murrayc@…>, 6 years ago

What is the compilation error?

by scott_paulin@…, 6 years ago

Attachment: compilation_error.txt added

compilation error for first example

in reply to:  1 comment:2 by scott_paulin@…, 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).

Note: See TracTickets for help on using tickets.