I am attempting to compile this in Fedora:
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:
If I can get this to compile and run I can actually see what the Dining Philosophers problem is supposed to look like, and then be able to start my own program.
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:
Code:
g++ -lpthread dining_philosophers.cc make ./dining_philosophers
Comment