Finished pthreads article
nicholasdrozd at gmail.com
Tue Apr 28 14:56:47 UTC 2020
> This makefile should work for the examples in my article:
> CFLAGS = -std=c99 -pedantic -D_POSIX_C_SOURCE=200809L -Wall -Wextra
> LDLIBS = -lpthread
> $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
> I also updated the article. Thanks again for pointing out the build failure.
I can confirm that this works on Linux, and on Mac the #error message
is reported for life.c.
More information about the Friends