delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/12/00:09:58

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>
Subject: undefined reference to `_libiconv_open'
Date: Wed, 12 Feb 2003 00:08:13 -0800
Message-ID: <02fd01c2d26d$e3aa9230$2701a8c0@E888>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019