John Graham <johngavingraham@xxxxxxxxxxxxxx> writes: > Under a new user (created for a pet project) I got a compiler error > saying the header <stddef.h> was not found. However, when compiling as > my "usual" username (john) gcc was able to find the header. This implies that the new user is unable to determine the current working directory. Make sure that "sudo -u USER /bin/pwd" prints something reasonable rather than, say, a "permission denied" error. Ian