This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Newbie questions about gcc / glibc
- From: "Frederich, Eric P21322" <eric dot frederich at siemens dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 18 Sep 2007 11:11:48 -0400
- Subject: Newbie questions about gcc / glibc
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