Sorry for the late post, I've been busy the last few days. After doing what you have suggested, the program compiles with the output:
Code: Select all
In function `HasseDiagram':
/usr/local/include/polymake/graph/HasseDiagram.h:262: warning: undefined reference to `polymake::graph::HasseDiagram::fromObject(pm::perl::Object const&)
Now, the program actually starts running and crashes at the line with
Code: Select all
const graph::HasseDiagram hd(hd_obj);
Here is the relevant part of the stack trace from gdb:
#0 0x00007ffff752ba0f in pm::perl::glue::canned_container_access(interpreter*, sv*, magic*, sv*, char const*, int) ()
from /usr/local/lib/libpolymake.so
#1 0x00007ffff5bfc20f in Perl_mg_copy () from /usr/lib/libperl.so.5.14
#2 0x00007ffff5c1063c in Perl_av_fetch () from /usr/lib/libperl.so.5.14
#3 0x00007ffff751f8c8 in pm::perl::ArrayHolder::operator[](int) const () from /usr/local/lib/libpolymake.so
#4 0x00007fffb619ebf5 in pm::enable_if<void, (pm::perl::check_for_magic_storage<std::vector<int, std::allocator<int> > >::value)&&(pm::is_parseable<std::vector<int, std::allocator<int> > >::value)>::type pm::perl::Value::retrieve_nomagic<std::vector<int, std::allocator<int> > >(std::vector<int, std::allocator<int> >&) const () from /usr/local/lib/polymake/lib/graph.so
#5 0x00007fffb619c30b in polymake::graph::HasseDiagram::fromObject(pm::perl::Object const&) () from /usr/local/lib/polymake/lib/graph.so
#6 0x000000000041f82e in polymake::graph::HasseDiagram::HasseDiagram (this=0x7fffffffdb70, o=...)
at /usr/local/include/polymake/graph/HasseDiagram.h:262