From: <dan...@ya...> - 2002-11-23 11:00:30
|
--- Daniel Taupin <ta...@wa...> wrote: > > > > > Brian Low wrote: > >> Where is the getopt.h header file for the getopt() functions in > libiberty.a? > > > > >> If I copy getopt.h from the binutils source and place it in the mingw > >> include folder, everything works. > >> > > > > Well, the obvious answer is in libiberty.h; however, for what ever > > reasson, the `make install' process of binutils and gcc don't distribute > > the header, just the library. The header can be find in the source > > distribution of both binutils and gcc. > > ----> this solves some problems with missing getopt.h. But my problem > was not about getopt.h, but finding > getopt.o in a library. In fact, I tried to add libiberty.a to the > libraries to be searched, but getopt was not found. > > My question is still pending: in which library con one find getopt.o ? > > Note that, seeing what many srandard Makefile's do, several GCC > distributions (in unix or DOS/Win32) have NO getopt() in the base > library. I wold be nice if it were included in the standard librart, as > it is with DJGPP. > getopt is in libiberty.a and it is GPL'd. The one in DJGPP is too for that matter. The GPL is why the public interface to getopt in getopt.h is not distributed as part of the "standard" mingw toolchain. Danny http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper - Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper! |