Quan-Zhi / k-shortest-paths

Automatically exported from code.google.com/p/k-shortest-paths
0 stars 0 forks source link

Compiling on MacOs #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. c++ MainP.cpp -o MainP.out
2.
3.

What is the expected output? What do you see instead?
Undefined symbols:
  "Graph::Graph(Graph const&)", referenced from:
      YenTopKShortestPathsAlg::YenTopKShortestPathsAlg(Graph const&, BaseVertex*, BaseVertex*)in ccIwu08M.o
  "YenTopKShortestPathsAlg::clear()", referenced from:
      YenTopKShortestPathsAlg::~YenTopKShortestPathsAlg()in ccIwu08M.o
  "YenTopKShortestPathsAlg::has_next()", referenced from:
      testYenAlg()     in ccIwu08M.o
  "Graph::Graph(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      testYenAlg()     in ccIwu08M.o
      testDijkstraGraph()     in ccIwu08M.o
  "Graph::get_vertex(int)", referenced from:
      testYenAlg()     in ccIwu08M.o
      testYenAlg()     in ccIwu08M.o
      testDijkstraGraph()     in ccIwu08M.o
      testDijkstraGraph()     in ccIwu08M.o
  "Graph::~Graph()", referenced from:
      testYenAlg()     in ccIwu08M.o
      testYenAlg()     in ccIwu08M.o
  "DijkstraShortestPathAlg::get_shortest_path(BaseVertex*, BaseVertex*)", referenced from:
      testDijkstraGraph()     in ccIwu08M.o
  "YenTopKShortestPathsAlg::_init()", referenced from:
      YenTopKShortestPathsAlg::YenTopKShortestPathsAlg(Graph const&, BaseVertex*, BaseVertex*)in ccIwu08M.o
  "DijkstraShortestPathAlg::clear()", referenced from:
      DijkstraShortestPathAlg::~DijkstraShortestPathAlg()in ccIwu08M.o
  "YenTopKShortestPathsAlg::next()", referenced from:
      testYenAlg()     in ccIwu08M.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

What version of the product are you using? On what operating system?
MacOs 

Please provide any additional information below.

Actually I do not know if I am doing the right thing but I find no information 
related to compiling/running the program. 

Original issue reported on code.google.com by mohamed....@gmail.com on 9 Jul 2011 at 12:03

GoogleCodeExporter commented 8 years ago
What is your compiler?

Original comment by yan.qi....@gmail.com on 13 Jul 2011 at 8:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have compiled with the command c++ which launches g++ (the c++ compiler that 
comes with Xcode on MacOs)

Original comment by mohamed....@gmail.com on 14 Jul 2011 at 6:33

GoogleCodeExporter commented 8 years ago
http://www.network-theory.co.uk/docs/gccintro/gccintro_11.html

Original comment by yan.qi....@gmail.com on 27 Apr 2012 at 6:45