getopt and C++

Mark Overmars markov at cs.ruu.nl
Tue Mar 5 02:18:43 AEST 1991


I have a simple question: How do I use the routine getopt with C++. What I did
was to put

   extern int getopt(int,char **,char *);

in the program. Now the loader complaints that getopt__FiPPcPc is undefined.

How do I solve this?

Mark Overmars



More information about the Comp.sys.sgi mailing list