RE: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-19 Thread Igor Peshansky
On Mon, 18 Jun 2007, Dave Korn wrote: On 18 June 2007 16:35, Alexey Lyubimov wrote: Dave Korn wrote: You forgot to tell it to link against libintl. Try $ gcc -o gt -g main.c -lintl Thanks Dave! It works! But what do you think about this text from the gettext manual, I've

Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-18 Thread Alexey Lyubimov
--- 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

RE: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-18 Thread Dave Korn
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:

RE: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-18 Thread Alexey Lyubimov
Dave Korn wrote: You forgot to tell it to link against libintl. Try $ gcc -o gt -g main.c -lintl cheers, DaveK Thanks Dave! It works! But what do you think about this text from the gettext manual, I've taken the example from: Compile as usual with gcc -o hello hello.c. The program

RE: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-18 Thread Dave Korn
On 18 June 2007 16:35, Alexey Lyubimov wrote: Dave Korn wrote: You forgot to tell it to link against libintl. Try $ gcc -o gt -g main.c -lintl cheers, DaveK Thanks Dave! It works! But what do you think about this text from the gettext manual, I've taken the example

1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-15 Thread Alexey Lyubimov
Hello! When I try to compile very simple example from gettext's tutorial - I get compilation errors using gcc or g++. Here is the source code: - main.c or main.cc #include libintl.h #include locale.h #include stdio.h #include stdlib.h #define _(aString)

Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-15 Thread Igor Peshansky
On Fri, 15 Jun 2007, Alexey Lyubimov wrote: Hello! When I try to compile very simple example from gettext's tutorial - I get compilation errors using gcc or g++. Here is the source code: - main.c or main.cc #include libintl.h #include locale.h #include

Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-15 Thread Tim Prince
[EMAIL PROTECTED] wrote: main.c:3:21: libintl.h: No such file or directory libintl is an optional installation on cygwin setup. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Re: 1.5.24-2 (locale.h): Compilation ERRORs ?!

2007-06-15 Thread Brian Dessent
Tim Prince wrote: [EMAIL PROTECTED] wrote: main.c:3:21: libintl.h: No such file or directory libintl is an optional installation on cygwin setup. A *Cygwin* verison of the library is an optional package, yes. But that's irrelevant as that error was the result of trying to compile with