delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/18/07:26:33

X-Spam-Check-By: sourceware.org
X-YMail-OSG: 1V7Ns54VM1nQQG_VOihd96qJvki8FbxuTtnrQdLeqtkWHzjJDAQcwTtv68vnkszDTVAYFKdTx4Xt6uLY2ilhkH6FLkAiCWzhkEGtxOPpI5KPbrEVljs-
Date: Mon, 18 Jun 2007 04:26:14 -0700 (PDT)
From: Alexey Lyubimov <alexeipobox AT yahoo DOT com>
Subject: Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.63.0706151333240.23164@access1.cims.nyu.edu>
MIME-Version: 1.0
Message-ID: <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

--- Igor Peshansky wrote:

[snip]

> Not sure.  Builds fine on my system, with both gcc
> and g++, with "main.c
> or main.cc" commented out...
> 
> However, a WAG: when you say
> 
> > Here is the source code:
> > -----------------------------
> > main.c or main.cc
> >
> > #include <libintl.h>
> 
> Do you mean that the first line of your program is
> actually "main.c or
> main.cc"?  If not, what is the first line?  I get a
> similar message if I
> put something nonsensical there, like "class".
> 	Igor
> -- 

Thank you Igor, you were right!!! The first line of
the program was actually:
$Id$
I forgot comment out the keyword for Subversion ;-)

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.

---
Alexey Lyubimov
  


       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019