undefined reference to `_libiconv_open'

From: "jklcom" <jklcom(at)mindspring(dot)com>
To: <pgsql-cygwin(at)postgresql(dot)org>
Subject: undefined reference to `_libiconv_open'
Date: 2003-02-12 08:07:34
Message-ID: 02fc01c2d26d$cc662670$2701a8c0@E888
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

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'

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jennifer Lee 2003-02-12 10:19:57 Re: [NOVICE] Problems installing CygIPC for PostgreSQL
Previous Message S. L. 2003-02-12 07:52:01 Re: Connecting to PostgreSQL via web