This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!
- From: Alexey Lyubimov <alexeipobox at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 18 Jun 2007 04:26:14 -0700 (PDT)
- Subject: Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!
--- 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/