X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <434560 DOT 49628 DOT qm AT web33214 DOT mail DOT mud DOT yahoo DOT com> Subject: RE: 1.5.24-2 (locale.h): Compilation ERRORs ?! Date: Mon, 18 Jun 2007 12:43:19 +0100 Message-ID: <043901c7b19d$dfe5ce30$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <434560.49628.qm@web33214.mail.mud.yahoo.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 18 June 2007 12:26, Alexey Lyubimov wrote: > After I corrected that line in the source - > compilation runs Ok. BUT NOW I HAVE A PROBLEM WITH > LINKING the program: > > $ gcc -o gt -g main.c > /cygdrive/c/windows/temp/cc0IXbwD.o: In function > `main': > /cygdrive/e/home/ael/work/gt/main.c:14: undefined > reference to `_libintl_bindtex > tdomain' > /cygdrive/e/home/ael/work/gt/main.c:15: undefined > reference to `_libintl_textdom > ain' > /cygdrive/e/home/ael/work/gt/main.c:16: undefined > reference to `_libintl_gettext > ' > collect2: ld returned 1 exit status > > Help me, please, to find the reason. You forgot to tell it to link against libintl. Try $ gcc -o gt -g main.c -lintl cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/