[SunHELP] error getopt.h: No such file

Nicholas Dronen sunhelp at sunhelp.org
Tue Jan 23 05:51:48 CST 2001


On Wed, Jan 24, 2001 at 02:18:49AM +0600, Chanaka Mendis wrote:
> Hi all,
> I downloaded a source code for changing passwd using pop.
> Site is  http://netwinsite.com/poppassd/
> 
> When I tried to complie poppassd.c on SOLARIS 7 using gcc it gives
> following error.
> 
> poppassd.c:146: getopt.h: No such file or directory
> 
> Can any one suggest any thing?

Solaris has getopt(3c), which is declared in stdlib.h.
The code you're using shouldn't include getopt.h when
it's being compiled on Solaris.  You might want to
send email to the maintainers notifying them of this.

Regards,

Nick Dronen



More information about the SunHELP mailing list