delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "jklcom" <jklcom AT mindspring DOT com> |
To: | <cygwin AT cygwin DOT com>, "'David Robinow'" <Robinows AT netscape DOT net> |
Subject: | RE: undefined reference to `_libiconv_open' |
Date: | Wed, 12 Feb 2003 09:32:17 -0800 |
Message-ID: | <031d01c2d2bc$b0a42ff0$2701a8c0@E888> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
In-Reply-To: | <1E19EBAC.6293BD5D.00822747@netscape.net> |
Importance: | Normal |
Compile error, please help $ make test gcc -s -o /c/progra~1/Apache~1/Apache/cgi-bin/test.exe test.c intrautils.c -I/us r/local/pgsql/include -L/usr/local/pgsql/lib -lpq test.c: In function `main': test.c:16: warning: passing arg 2 of `libiconv' from incompatible pointer type intrautils.c:7: warning: initialization makes integer from pointer without a cas t intrautils.c: In function `auditTermLicense': intrautils.c:1977: warning: initialization makes integer from pointer without a cast /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0x8e):test.c: undefined referenc e to `_libiconv_open' /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0xb8):test.c: undefined referenc e to `_libiconv' /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccRSzbsH.o(.text+0xd9):test.c: undefined referenc e to `_libiconv_close' collect2: ld returned 1 exit status make: *** [test] Error 1 After adding -libconv I got this: $ make test gcc -s -o /c/progra~1/Apache~1/Apache/cgi-bin/test.exe test.c intrautils.c -I/us r/local/pgsql/include -L/usr/local/pgsql/lib -lpq -libconv test.c: In function `main': test.c:16: warning: passing arg 2 of `libiconv' from incompatible pointer type intrautils.c:7: warning: initialization makes integer from pointer without a cas t intrautils.c: In function `auditTermLicense': intrautils.c:1977: warning: initialization makes integer from pointer without a cast /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot fi nd -libconv collect2: ld returned 1 exit status make: *** [test] Error 1 -----Original Message----- From: David Robinow [mailto:Robinows AT netscape DOT net] Sent: Wednesday, February 12, 2003 4:22 AM To: "jklcom" Subject: RE: undefined reference to `_libiconv_open' "jklcom" <jklcom AT mindspring DOT com> wrote: >Hi, can someone help? > >When I compile my test program I'm getting the following error >messages: Add -liconv to the end of your compile command. You should have included the compile command in your post. Normally it makes it easier to help you, although in this case the answer was obvious. __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |