Skip to content

Instantly share code, notes, and snippets.

@carylee
Created March 6, 2012 05:42
Show Gist options
  • Save carylee/1983877 to your computer and use it in GitHub Desktop.
Save carylee/1983877 to your computer and use it in GitHub Desktop.
G++ errors for routing lab
topology.cc: In member function ‘std::deque<Node*, std::allocator<Node*> >* Topology::GetNeighbors(const Node*)’:
topology.cc:65: warning: taking address of temporary
topology.cc: In member function ‘void Topology::ChangeLink(const Link*)’:
topology.cc:143: warning: taking address of temporary
topology.cc: In member function ‘void Topology::CollectShortestPathTreeLinks(const Node&, std::deque<Link, std::allocator<Link> >&)’:
topology.cc:231: warning: taking address of temporary
context.cc: In member function ‘void SimulationContext::SendToNeighbors(const Node*, const RoutingMessage*)’:
context.cc:333: warning: taking address of temporary
context.cc: In member function ‘void SimulationContext::SendToNeighbor(const Node*, const Node*, const RoutingMessage*)’:
context.cc:341: warning: taking address of temporary
ar: creating archive libroutelab.a
ar: node.o: No such file or directory
ar: link.o: No such file or directory
ar: table.o: No such file or directory
make: *** [libroutelab.a] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment