Finished pthreads article

Nicholas Drozd nicholasdrozd at gmail.com
Tue Apr 28 14:56:47 UTC 2020


> This makefile should work for the examples in my article:
>
>         .POSIX:
>         CFLAGS = -std=c99 -pedantic -D_POSIX_C_SOURCE=200809L -Wall -Wextra
>         LDLIBS = -lpthread
>
>         .c:
>                 $(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 mailing list