Date: Sun, 19 Oct 2003 16:52:22 +0200 From: Roman Neuhauser <neuhauser@bellavista.cz> To: Peter Cornelius <pcc@gmx.net> Cc: FreeBSD-Questions@FreeBSD.Org Subject: Re: ? getopt_long(), iopl() and ioperm() ? Message-ID: <20031019145221.GE48233@freepuppy.bellavista.cz> In-Reply-To: <31243.1066521585@www67.gmx.net> References: <31243.1066521585@www67.gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
# pcc@gmx.net / 2003-10-19 01:59:45 +0200: > I'm hacking at a piece of code that I want to turn into a port. It's from > Linux and uses libpci and some other 'strange' functions. > While I think that I've managed to modify the libpci port to install the > required lib, I'm more or less lost at getopt_long() which I > assume is in the libgnugetopt port. However, for some reason, even if I > include it explicitly (#include "/usr/local/include/getopt.h"), I > run into problems. Please note that I'm not a programmer at all, so it's > very much hacking along, so I may look for someone patient > to bear with me ;-) But I am willing to learn. AFAICT you need to tell the compiler about the library. The rule in your Makefile needs to have "-L /usr/local/lib -lgnugetopt". -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031019145221.GE48233>