<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Right libiconv version for Windows</title>
	<atom:link href="http://www.jeffhung.net/blog/articles/jeffhung/533/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffhung.net/blog/articles/jeffhung/533/</link>
	<description>(My smile insists of having nose. :-)</description>
	<lastBuildDate>Thu, 03 Nov 2011 00:43:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2-alpha</generator>
	<item>
		<title>By: huggies</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-156301</link>
		<dc:creator>huggies</dc:creator>
		<pubDate>Wed, 09 Dec 2009 08:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-156301</guid>
		<description>DEAR:
非常感謝您, 但是煩請您在教導一下... 請問 .lib 與 .a .la .dll .dll.a 有何不同? 如何改 Makefile.am 以達到&quot;用 dll 與 libiconv 連結&quot;? 而且應該用哪一個 libiconv (.a .la .lib....)? 還煩請您指導, THX!!</description>
		<content:encoded><![CDATA[<p>DEAR:<br />
非常感謝您, 但是煩請您在教導一下... 請問 .lib 與 .a .la .dll .dll.a 有何不同? 如何改 Makefile.am 以達到"用 dll 與 libiconv 連結"? 而且應該用哪一個 libiconv (.a .la .lib....)? 還煩請您指導, THX!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-156230</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Tue, 08 Dec 2009 14:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-156230</guid>
		<description>&lt;p&gt;huggies,&lt;/p&gt;
&lt;p&gt;看起來 libiconv.lib 裡面已經有一份 msvcrt.lib 了，你的程式也要連結 msvcrt.lib，導至有雙份標準函式庫實體。&lt;/p&gt;
&lt;p&gt;建議你用 dll 與 libiconv 連結。&lt;/p&gt;
&lt;p&gt;-- jeffhung&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>huggies,</p>
<p>看起來 libiconv.lib 裡面已經有一份 msvcrt.lib 了，你的程式也要連結 msvcrt.lib，導至有雙份標準函式庫實體。</p>
<p>建議你用 dll 與 libiconv 連結。</p>
<p>-- jeffhung</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huggies</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-156187</link>
		<dc:creator>huggies</dc:creator>
		<pubDate>Tue, 08 Dec 2009 04:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-156187</guid>
		<description>DEAR:

我用Cygwin + MSVC, 想使用 libiconv.lib 編譯, 但老是有問題... 想問 Makefile.am 應該如何改才對? 還煩請指教, THX!!


(1). library
$ ls -al libiconv*
-rwx------+ 1 Administrator SYSTEM 2992626 Mar  6  2008 libiconv-vc7.lib
-rwx------+ 1 Administrator SYSTEM 1343264 Jul 17 15:28 libiconv-vc7_debug.lib
-rwxr-x---+ 1 Administrator SYSTEM 1055158 May 31  2009 libiconv.a
-rwxr-x---+ 1 Administrator SYSTEM    8898 May 31  2009 libiconv.dll.a
-rwxr-x---+ 1 Administrator SYSTEM     916 May 31  2009 libiconv.la
-rwx------+ 1 Administrator SYSTEM 1020190 Mar  6  2008 libiconv.lib


(2). Makefile.am
include $(top_srcdir)/comlib.mk
SUBDIRS = .
INCLUDES = -I./include
lib_LTLIBRARIES = libXXCodeConv.la
#libXXCodeConv_la_LDFLAGS = $(no_undefined)
#libXXCodeConv_la_LDFLAGS = /usr/lib/iconv
#libXXCodeConv_la_LDFLAGS = $(no_undefined) /Zi -Wl,libiconv.lib,/LDd
libXXCodeConv_la_LDFLAGS = /usr/lib/libiconv.lib

(3). make 
A. USE &quot;libXXCodeConv_la_LDFLAGS = $(no_undefined)&quot;
...
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared l
ibraries

B. USE &quot;/ibXXCodeConv_la_LDFLAGS = $(no_undefined) /Zi -Wl,libiconv.lib,/LDd&quot;
...
libiconv.lib
MSVCRT.lib(MSVCR71.dll) : error LNK2005: __errno 已經定義於 LIBCMT.lib(dosmap.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _malloc 已經定義於 LIBCMT.lib(malloc.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _free 已經定義於 LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _sprintf 已經定義於 LIBCMT.lib(sprintf.obj)
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: __errno 已經定義於 LIBCMT.lib(dosmap.obj); 忽略第二個定義
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _malloc 已經定義於 LIBCMT.lib(malloc.obj); 忽略第二個定義
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _free 已經定義於 LIBCMT.lib(free.obj); 忽略第二個定義
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _sprintf 已經定義於 LIBCMT.lib(sprintf.obj); 忽略第二個定義
   正在建立程式庫 .libs/libZk5CodeConv-0.lib 和物件 .libs/libZk5CodeConv-0.exp
LINK : warning LNK4098: 預設的程式庫 &#039;MSVCRT&#039; 與其他使用的程式庫衝突; 請使用 /NODEFAULTLIB:library
.libs/libZk5CodeConv-0.dll : fatal error LNK1169: 找到有一或多個已定義的符號

C. USE &quot;libXXCodeConv_la_LDFLAGS = /usr/lib/libiconv.lib&quot;
...
*** Warning: Trying to link with static lib archive /usr/lib/libiconv.lib.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .lib of this argument makes me believe
*** that it is just a static archive that I should not use here.
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared l
ibraries
...
...
Microsoft (R) Library Manager Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

LIB : warning LNK4044: 無法辨認的選項 &#039;/usr/lib/libiconv.lib&#039;; 已忽略
LIB : warning LNK4044: 無法辨認的選項 &#039;/usr/lib/libiconv.lib&#039;; 已忽略</description>
		<content:encoded><![CDATA[<p>DEAR:</p>
<p>我用Cygwin + MSVC, 想使用 libiconv.lib 編譯, 但老是有問題... 想問 Makefile.am 應該如何改才對? 還煩請指教, THX!!</p>
<p>(1). library<br />
$ ls -al libiconv*<br />
-rwx------+ 1 Administrator SYSTEM 2992626 Mar  6  2008 libiconv-vc7.lib<br />
-rwx------+ 1 Administrator SYSTEM 1343264 Jul 17 15:28 libiconv-vc7_debug.lib<br />
-rwxr-x---+ 1 Administrator SYSTEM 1055158 May 31  2009 libiconv.a<br />
-rwxr-x---+ 1 Administrator SYSTEM    8898 May 31  2009 libiconv.dll.a<br />
-rwxr-x---+ 1 Administrator SYSTEM     916 May 31  2009 libiconv.la<br />
-rwx------+ 1 Administrator SYSTEM 1020190 Mar  6  2008 libiconv.lib</p>
<p>(2). Makefile.am<br />
include $(top_srcdir)/comlib.mk<br />
SUBDIRS = .<br />
INCLUDES = -I./include<br />
lib_LTLIBRARIES = libXXCodeConv.la<br />
#libXXCodeConv_la_LDFLAGS = $(no_undefined)<br />
#libXXCodeConv_la_LDFLAGS = /usr/lib/iconv<br />
#libXXCodeConv_la_LDFLAGS = $(no_undefined) /Zi -Wl,libiconv.lib,/LDd<br />
libXXCodeConv_la_LDFLAGS = /usr/lib/libiconv.lib</p>
<p>(3). make<br />
A. USE "libXXCodeConv_la_LDFLAGS = $(no_undefined)"<br />
...<br />
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared l<br />
ibraries</p>
<p>B. USE "/ibXXCodeConv_la_LDFLAGS = $(no_undefined) /Zi -Wl,libiconv.lib,/LDd"<br />
...<br />
libiconv.lib<br />
MSVCRT.lib(MSVCR71.dll) : error LNK2005: __errno 已經定義於 LIBCMT.lib(dosmap.obj)<br />
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _malloc 已經定義於 LIBCMT.lib(malloc.obj)<br />
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _free 已經定義於 LIBCMT.lib(free.obj)<br />
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _sprintf 已經定義於 LIBCMT.lib(sprintf.obj)<br />
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: __errno 已經定義於 LIBCMT.lib(dosmap.obj); 忽略第二個定義<br />
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _malloc 已經定義於 LIBCMT.lib(malloc.obj); 忽略第二個定義<br />
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _free 已經定義於 LIBCMT.lib(free.obj); 忽略第二個定義<br />
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _sprintf 已經定義於 LIBCMT.lib(sprintf.obj); 忽略第二個定義<br />
   正在建立程式庫 .libs/libZk5CodeConv-0.lib 和物件 .libs/libZk5CodeConv-0.exp<br />
LINK : warning LNK4098: 預設的程式庫 'MSVCRT' 與其他使用的程式庫衝突; 請使用 /NODEFAULTLIB:library<br />
.libs/libZk5CodeConv-0.dll : fatal error LNK1169: 找到有一或多個已定義的符號</p>
<p>C. USE "libXXCodeConv_la_LDFLAGS = /usr/lib/libiconv.lib"<br />
...<br />
*** Warning: Trying to link with static lib archive /usr/lib/libiconv.lib.<br />
*** I have the capability to make that library automatically link in when<br />
*** you link to this library.  But I can only do this if you have a<br />
*** shared version of the library, which you do not appear to have<br />
*** because the file extensions .lib of this argument makes me believe<br />
*** that it is just a static archive that I should not use here.<br />
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared l<br />
ibraries<br />
...<br />
...<br />
Microsoft (R) Library Manager Version 7.10.3077<br />
Copyright (C) Microsoft Corporation.  All rights reserved.</p>
<p>LIB : warning LNK4044: 無法辨認的選項 '/usr/lib/libiconv.lib'; 已忽略<br />
LIB : warning LNK4044: 無法辨認的選項 '/usr/lib/libiconv.lib'; 已忽略</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-148357</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Fri, 18 Sep 2009 07:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-148357</guid>
		<description>&lt;p&gt;Dear V,&lt;/p&gt;
&lt;p&gt;你需要設定 project 的 include/library path，指到 %ProgramFiles%\GnuWin32\include 與 %ProgramFiles%\GnuWin32\lib 去。&lt;/p&gt;
&lt;p&gt;沒有 source 的即可。&lt;/p&gt;
&lt;p&gt;Jeff Hung&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Dear V,</p>
<p>你需要設定 project 的 include/library path，指到 %ProgramFiles%\GnuWin32\include 與 %ProgramFiles%\GnuWin32\lib 去。</p>
<p>沒有 source 的即可。</p>
<p>Jeff Hung</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-148355</link>
		<dc:creator>V</dc:creator>
		<pubDate>Fri, 18 Sep 2009 06:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-148355</guid>
		<description>請問下載GnuWin32的libiconv安裝檔安裝好後需要再額外做什麼設定嗎?(我要使用VC++寫轉編碼程式)另外是下載有source還有沒有source的那一個setup檔?謝謝</description>
		<content:encoded><![CDATA[<p>請問下載GnuWin32的libiconv安裝檔安裝好後需要再額外做什麼設定嗎?(我要使用VC++寫轉編碼程式)另外是下載有source還有沒有source的那一個setup檔?謝謝</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-61918</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Wed, 13 Jun 2007 06:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-61918</guid>
		<description>&lt;p&gt;Dear Welbon Wang,&lt;/p&gt;
&lt;p&gt;Usually, when there is access violation errors, it means there is something wrong with your pointers.&lt;/p&gt;
&lt;p&gt;For example, when pointer &lt;code class=&quot;inline_code&quot;&gt;p&lt;/code&gt; (which point to a structure) is &lt;code class=&quot;inline_code&quot;&gt;NULL&lt;/code&gt;, &lt;code class=&quot;inline_code&quot;&gt;p-&amp;ltfield&lt;/code&gt; will cause such kind of error.&lt;/p&gt;
&lt;p&gt;Jeff Hung&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Dear Welbon Wang,</p>
<p>Usually, when there is access violation errors, it means there is something wrong with your pointers.</p>
<p>For example, when pointer <code class="inline_code">p</code> (which point to a structure) is <code class="inline_code">NULL</code>, <code class="inline_code">p-&amp;ltfield</code> will cause such kind of error.</p>
<p>Jeff Hung</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Welbon Wang</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-61917</link>
		<dc:creator>Welbon Wang</dc:creator>
		<pubDate>Wed, 13 Jun 2007 06:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-61917</guid>
		<description>When I run the applicaiton which is compiled ank linked using VC6, I got an error that access violation. Can you tell me why?
My application links to libiconv.lib. No error happens when compiling and linking.
Thanks a lot.</description>
		<content:encoded><![CDATA[<p>When I run the applicaiton which is compiled ank linked using VC6, I got an error that access violation. Can you tell me why?<br />
My application links to libiconv.lib. No error happens when compiling and linking.<br />
Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Welbon Wang</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-61916</link>
		<dc:creator>Welbon Wang</dc:creator>
		<pubDate>Wed, 13 Jun 2007 06:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-61916</guid>
		<description>When I run the application compile and link with VC6, I got the error access violation.
Can you tell me why?
Thanks a lot.</description>
		<content:encoded><![CDATA[<p>When I run the application compile and link with VC6, I got the error access violation.<br />
Can you tell me why?<br />
Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-15216</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Fri, 17 Nov 2006 06:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-15216</guid>
		<description>配上 tcsh-win32 以及 vim-win32，基本上我已經可以在 win32 上用 unix 的方法做很多事情。</description>
		<content:encoded><![CDATA[<p>配上 tcsh-win32 以及 vim-win32，基本上我已經可以在 win32 上用 unix 的方法做很多事情。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bingle</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/533/comment-page-1/#comment-15214</link>
		<dc:creator>bingle</dc:creator>
		<pubDate>Fri, 17 Nov 2006 06:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/articles/jeffhung/533/#comment-15214</guid>
		<description>“觀察了一下 GnuWin32，發現這是目前我所找到的，比較好的 GNU/OpenSource on Win32 的 solution。其一，皆是 native porting，不必像 Cygwin 那樣拖著一個大大的 unix emulation layer”

非常同意，找iconv的win32库，跑到了gnuwin32上，下来看了下居然不是用cygwin的，非常不错。</description>
		<content:encoded><![CDATA[<p>“觀察了一下 GnuWin32，發現這是目前我所找到的，比較好的 GNU/OpenSource on Win32 的 solution。其一，皆是 native porting，不必像 Cygwin 那樣拖著一個大大的 unix emulation layer”</p>
<p>非常同意，找iconv的win32库，跑到了gnuwin32上，下来看了下居然不是用cygwin的，非常不错。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

