this post was submitted on 24 Jan 2026
750 points (99.7% liked)

Programmer Humor

28738 readers
1594 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ulterno@programming.dev 2 points 7 hours ago

When I started programming with C, it was pretty easy to get code to compile on my first try.

Now, when I use C...
_POSIX_C_SOURCE >= 199309L ... was in the man page, but didn't work... _GNU_SOURCE works.
Read somewhere to just use -std=gnu17 and remove _GNU_SOURCE and nice, it works.
Create another project with -std=gnu17, but using another function and now it doesn't work. Need to add _GNU_SOURCE. Why?