This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: libiconv
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com, Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Thu, 28 Oct 2010 18:28:27 +0100 (BST)
- Subject: Re: libiconv
--- Gio 28/10/10, Samuel Thibault ha scritto:
> Marco Atzeri, le Thu 28 Oct 2010
> 18:08:18 +0100, a écrit :
> > is the additional "lib" correct ?
>
> Yes. You need to #include <iconv.h> to get the proper
> refname.
>
> Samuel
>
Hi Samuel,
#include <iconv.h>
it is already there
and /usr/include/iconv.h seems to not include
libiconv* function but only iconv* ones
-------------------------------------------
#ifndef _ICONV_H_
#define _ICONV_H_
#include <_ansi.h>
#include <reent.h>
#include <sys/types.h>
#include <sys/_types.h>
/* iconv_t: charset conversion descriptor type */
typedef _iconv_t iconv_t;
_BEGIN_STD_C
#ifndef _REENT_ONLY
iconv_t
_EXFUN(iconv_open, (_CONST char *, _CONST char *));
size_t
_EXFUN(iconv, (iconv_t, char **, size_t *, char **, size_t *));
int
_EXFUN(iconv_close, (iconv_t));
#endif
iconv_t
_EXFUN(_iconv_open_r, (struct _reent *, _CONST char *, _CONST char *));
size_t
_EXFUN(_iconv_r, (struct _reent *, iconv_t, _CONST char **,
size_t *, char **, size_t *));
int
_EXFUN(_iconv_close_r, (struct _reent *, iconv_t));
_END_STD_C
#endif /* #ifndef _ICONV_H_ */
--------------------------------------------
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple