http://www.math-cs.gordon.edu/courses/cs322/projects/p2/dp/c++/philosopher.cc
I've used all of the source files and the makefile provided yet I am getting the errors:
undefined reference to 'msecond'
undefined reference to 'random_int'
Our Linux teacher was very sketchy on how to actually write makefiles / compile programs in general (he basically told us to go read the Man Pages and use Google) so I've been using these lines to compile, make, and finally run the program:
Expand|Select|Wrap|Line Numbers
- g++ -lpthread dining_philosophers.cc
- make
- ./dining_philosophers