Thierry Boudet <oul### [at] chez com> wrote:
> Mike Andrews wrote:
> >
C:/WINNT40/Profiles/SLSAND~1.RDG/LOCALS~1/Temp/cc0Eaaaa.o(.text+0x201):mkg3states.c:
> > undefined reference to `getopt'
>
> [...]
>
> > For some reason it doesn't seem to be finding <getopt.h> although this
> > should be in the include chain: "port.h" -> <unistd.h> -> <getopt.h>
> >
> You don't have "getopt" in you libraries.
> It was not a problem with the include.
> May be adding -lgetop will help...
Hi Thierry,
I should have noticed that it was at the link stage rather than at compile!
It's obviously been much too long since I did any serious compilation ...
I got PoV to compile first time with Cygwin so I not too bothered at the
moment :-) but I'll try to have another look at Mingw compiling over the
weekend.
Mike.
Post a reply to this message
|