Hello,

I have a bunch of command line programs and I am trying to support
Windows, Linux and an older version of Solaris.
I got the same version of gcc working on all 3 platforms.

Now the problem is that I can't get getopt_long to work which is
provided by getopt.h.
I don't know much about how all of these things glue together or whether
it is the compiler, c library, or the operating system which is supposed
to provide some of these functions.

I saw getopt.h, getopt.c, and getopt1.c in my gcc directory under
libiberty.
What are these for?  Is getopt supposed to be part of gcc or part of
glibc?

Thanks,
~Eric

Reply via email to