This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: 1.5.24-2 (locale.h): Compilation ERRORs ?!
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/