Boost logo

Boost Users :

From: scaliwagjones_at_[hidden]
Date: 2019-11-07 00:23:08


I understand that compiling is no longer necessary to read graphml files.My program compiles but does not link. It worked before I upgraded boost_1_71_0.
Program:

#include <iostream>
#include <boost/graph/graphml.hpp>
#include <boost/graph/adjacency_list.hpp>

using namespace std;
using namespace boost;

  typedef adjacency_list < vecS, vecS, bidirectionalS > graph_t;

      
  graph_t g;

  dynamic_properties dpg;

  int main( )
  {

      read_graphml(cin, g, dpg, 0);
            
  }

Makefile:
read_graphml_test: read_graphml_test.cpp
        
    g++ -c -I/usr/local/boost_1_71_0 read_graphml_test.cpp

    ############

    g++ -I/usr/local/boost_1_71_0 -L/usr/local/boost_1_71_0/stage/lib read_graphml_test.o

Error message:

undefined reference to `boost::read_graphml(std::istream&, boost::mutate_graph&, unsigned long)'

Thanx



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net