Undefined Reference issues using Semaphores
问题 I am playing around with using Semaphores, but I keep encountering Undefined Reference warnings, thus causing my code not to work. I pulled example code from a text, but was having issues with some of their syntax, so I went to POSIX's semaphore tutorial and changed things around to their syntax and as a result am now getting these reference errors. I may simply be overlooking something, but I cannot find it. Errors: Producers_Consumers.c:52: warning: return type of ‘main’ is not ‘int’ /tmp