| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <Pine DOT GSO DOT 4 DOT 63 DOT 0706151333240 DOT 23164 AT access1 DOT cims DOT nyu DOT edu> <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 |
| 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 |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| 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 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |