[graph] leda_graph.hpp and LEDA 5.0.1
The example doesn't work with LEDA 5.0.1 any longer: C++ topo-sort-with-leda.o topo-sort-with-leda.cpp: In function `int main()': topo-sort-with-leda.cpp:14: error: expected init-declarator before '<' token topo-sort-with-leda.cpp:14: error: expected `,' or `;' before '<' token topo-sort-with-leda.cpp:15: error: `graph_t' undeclared (first use this function) topo-sort-with-leda.cpp:15: error: (Each undeclared identifier is reported only once for each function it appears in.) topo-sort-with-leda.cpp:15: error: expected `;' before "leda_g" [Many more errors follow] Compiler is g++ 4.1.0. Has anyone made LEDA 5.0.1 work with a BGL wrapper?
Jens Müller wrote:
The example doesn't work with LEDA 5.0.1 any longer:
As simple as that: Add
using namespace leda;
at an appropriate point ...
E.g.:
| int main()
| {
| using namespace boost;
| using namespace leda;
| typedef GRAPH
On Wed, 2006-11-29 at 15:58 +0100, Jens Müller wrote:
The example doesn't work with LEDA 5.0.1 any longer:
C++ topo-sort-with-leda.o topo-sort-with-leda.cpp: In function `int main()': topo-sort-with-leda.cpp:14: error: expected init-declarator before '<' token topo-sort-with-leda.cpp:14: error: expected `,' or `;' before '<' token topo-sort-with-leda.cpp:15: error: `graph_t' undeclared (first use this function) topo-sort-with-leda.cpp:15: error: (Each undeclared identifier is reported only once for each function it appears in.) topo-sort-with-leda.cpp:15: error: expected `;' before "leda_g"
[Many more errors follow]
Compiler is g++ 4.1.0.
Has anyone made LEDA 5.0.1 work with a BGL wrapper?
The last time I worked with LEDA was version 4.5. If they've changed their interface since then, someone with access to LEDA 5 will need to help us get our adaptors working again. Cheers, Doug
participants (2)
-
Douglas Gregor
-
Jens Müller