delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <42DEE474.43231DA5@dessent.net> |
Date: | Wed, 20 Jul 2005 16:55:32 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
MIME-Version: | 1.0 |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Re: undefined reference to `_libintl_gettext' with g++/c++ |
References: | <0IJY0061A0IX4C AT pmismtp02 DOT mcilink DOT com> |
X-Spam-Report: | -5.9/5.0 ---- Start SpamAssassin results * 0.0 TO_ADDRESS_EQ_REAL To: repeats address as real name * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mark Paulus wrote: > I have several binaries in a project, and most of the binaries > compile. However, one binary fails with a whole series of the > above error: > > g++ -L../lib -o dselect basecmds.o baselist.o basetop.o bindings.o curkeys > .o main.o methkeys.o methlist.o method.o methparse.o pkgcmds.o pkgdepcon. > o pkgdisplay.o pkginfo.o pkgkeys.o pkglist.o pkgsublist.o pkgtop.o helpms > gs.o -lintl -liconv -lintl -ldpkg -lncurses -L../optlib -lopt Here you are linking with "-lintl -ldpkg", but from the errors below it would appear that libdpkg.a depends on symbols in libintl, and thus the order is wrong. If A depends on symbols in B, then A must be specified before B on the link command line. Try changing the order to "-ldpkg -lintl". Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |