Re: Getting undefined reference to `_libiconv_open'

2003-02-12 Thread Ronald Landheer-Cieslak
Of course, I *should* point you to http://cygwin.com/bugs.html and tell
you to RTFM, but I'll do a couple of WAGs in stead

WAG1
You didn't link to libiconv - try using -liconv on your link line
/WAG1
WAG2
You might not even have libiconv installed - try installing it with 
Setup.exe
/WAG2
 
*now* I will point you to http://cygwin.com/bugs.html *and* tell you to 
RTFM next time.

Ciao,

rlc

On Tue, 11 Feb 2003, jklcom wrote:

 Hi, can someone help?
 
 When I compile my program I'm getting the following error messages:
 
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x8e):test.c: undefined
 referenc
 e to `_libiconv_open'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0xb8):test.c: undefined
 referenc
 e to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0xd9):test.c: undefined
 referenc
 e to `_libiconv_close'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x17b):test.c: undefined
 referen
 ce to `_libiconv_open'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x1b7):test.c: undefined
 referen
 ce to `_error'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x28a):test.c: undefined
 referen
 ce to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x2d0):test.c: undefined
 referen
 ce to `_libiconv'
 /c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x35c):test.c: undefined
 referen
 ce to `_libiconv_close'
 
 
 --
 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/
 


--
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/




RE: undefined reference to `_libiconv_open'

2003-02-12 Thread jklcom
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:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 4:22 AM
To: jklcom
Subject: RE: undefined reference to `_libiconv_open'


jklcom [EMAIL PROTECTED] 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/




RE: undefined reference to `_libiconv_open'

2003-02-12 Thread Igor Pechtchanski
Cockpit error.

Re-read the instructions *carefully*, both in the message you quoted
below, and in http://cygwin.com/ml/cygwin/2003-02/msg00807.html.  Follow
them *to the letter*.
Igor

On Wed, 12 Feb 2003, jklcom wrote:

 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:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 4:22 AM
 To: jklcom
 Subject: RE: undefined reference to `_libiconv_open'


 jklcom [EMAIL PROTECTED] 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.

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
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/




undefined reference to `_libiconv_open'

2003-02-11 Thread jklcom
Hi, can someone help?

When I compile my test program I'm getting the following error messages:

#include iconv.h
#include intrautils.h

int main() {
  char *p1, *p2;
  iconv_t i;
  size_t fromlen, tolen;
  char from[100], to[100];
  strcpy(from, /u33136/u38622); /* unicode string here */
  fromlen = strlen(from);
  p1 = (char *)from;
  p2 = (char *)to;
  
//  i = iconv_open(UTF-8, BIG5);
  i = iconv_open(BIG5, UTF-8);
  iconv(i, p1, fromlen, p2, tolen); 
printf(%s\n, to);
  iconv_close(i);

}

/c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0x8e):test.c: undefined
referenc e to `_libiconv_open'
/c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0xb8):test.c: undefined
referenc e to `_libiconv'
/c/DOCUME~1/Jeff/LOCALS~1/Temp/ccGtIvim.o(.text+0xd9):test.c: undefined
referenc e to `_libiconv_close'


--
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/