From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4371 invoked by alias); 22 Jul 2002 22:54:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4364 invoked from network); 22 Jul 2002 22:54:36 -0000 Received: from unknown (HELO ex02.idirect.net) (208.226.76.48) by sources.redhat.com with SMTP; 22 Jul 2002 22:54:36 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Got "undefined reference to" when compile program. Please help. Date: Mon, 22 Jul 2002 16:57:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Harig, Mark A." To: "joei" , X-SW-Source: 2002-07/txt/msg01802.txt.bz2 getopt_long_only is defined in libiberty.a, which is included in the gcc/g++ distribution of gcc 2.95.3-5 (the stable version). You should be able to find that library in /lib. If you don't find it there or you think it might be corrupted, then you might try reinstalling the gcc/g++ compiler. Also, what is the command that you used to compile argp-parse.o? What is the command that is linking in the archive library argp/libargp.a? > -----Original Message----- > From: joei [mailto:joei@thai.com] > Sent: Saturday, July 20, 2002 10:12 AM > To: cygwin@cygwin.com > Subject: Got "undefined reference to" when compile program.=20 > Please help. >=20 >=20 > I try to compile Linux source code of Rainbow (It is A.I. tool). > After I try to fix something (such as values.h that have not in > cygwin) I get last error message that I can't fix.=20 >=20 > It is...=20 >=20 > ./argp/libargp.a(argp-parse.o): In function `parser_parse_next': > /home/xxx/bowsrc/bow-20020213/argp/argp-parse.c:748:=20 > undefined reference to=20 > `getopt_long_only' > collect2: ld returned 1 exit status > make: *** [rainbow] Error 1=20 >=20 > Do any one have any idea about this error? > If you have ever seen this error and have solution please > let me know.=20 >=20 > You may also download source code at > http://www.siamzone.com/temp/bowsrc.zip=20 >=20 > Thanks for read and many thanks for help!!..=20 >=20 >=20 > be yourself@thai.com! > Shop all amazing products and get our special offers! >=20 > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ >=20 >=20 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/