fatal error: pwd.h: no such file or directory, I got this error when trying my code when using the following library

#include<pwd.h>

There's no standard C library called pwd.h. If this is a file that YOU have written and you're using it in this project, then pwd.h should be in quotes, not brackets.

#include "pwd.h"

That's a slight oversimplification, but I'm guessing that's what you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.