Re: mingw32 build (was Re: slrn 0.9.9 release plans)

"John E. Davis" <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Marcin Wiśniewski <[email protected]> wrote:
>> I will look into it.  In the mean time, perhaps you can explore this.
>> You will have to modify the makefile to link to the iconv library, and
>> put
>>
>>    #define HAVE_ICONV  1
>>
>> in the src/slrnconf.h file then recompile.
>
> /usr/bin/i586-mingw32msvc-gcc gw32objs/art.o gw32objs/art_misc.o
[...]
> -Wl,--subsystem,console -L/home/zygzak/slangwin/src/gw32objs -lslang
> -lwsock32 -lwinspool
> gw32objs/charset.o:charset.c:(.text+0x1cf): undefined reference to `_libiconv'

You will also need to add -liconv.
>> From within slrn, press Ctrl-X ESC.  You should see a "S-Lang>"
>> prompt.  At the prompt, enter:
>>
>>    vmessage("%d", _slang_utf8_ok);
>>
>> If 1 is displayed, then slang is in UTF-8 mode.
>
> I got 0 :(

Is that with LANG defined?  What does

   vmessage("%S", getenv ("LANG"));

produce?

Thanks, 
--John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.