Skip site navigation (1) Skip section navigation (2)

Re: C-Language Fun on VC2005 ERROR: could not load library

From: Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>
To: chaoyong wang <catcher_wang(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: C-Language Fun on VC2005 ERROR: could not load library
Date: 2010-04-09 21:18:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
2010/4/9 chaoyong wang <catcher_wang(at)hotmail(dot)com>:
> Hi,
>     I'm using VC2005 to create PG C-language Fun in my contrib xml_index,
> which import other library, and I have add the include and lib directory by
> changing and
>     But after I executed the following commands:
>         build DEBUG
>         perl "C:\Program Files\PostgreSQL\8.3"
>         initdb.exe -D "C:\Program Files\PostgreSQL\8.3\data" -E UTF8
> --locale=C
>         "pg_ctl" -D "C:/Program Files/PostgreSQL/8.3/data" -l logfile start
>         createdb test
>         psql test
>     when I trying to create the function by the following commands:
>         CREATE OR REPLACE FUNCTION create_xml_value_i ndex(text,text,text)
>         RETURNS bool
>         AS '$libdir/xml_index'
>     It reports an ERROR:
>         could not load library "C:\Program
> Files\PostgreSQL\8.3\lib/xml_index.dll": The specified module could not be
> found.
>     I checked the directory C:\Program Files\PostgreSQL\8.3\lib,
> xml_index.dll exists.
>     I tried to changed "$libdir/xml_index" by "C:\\Program
> Files\\PostgreSQL\\8.3\\lib\\xml_index", error remains.
>     Has anyone ever encountered this problem ? Thanks in advance.

Does your library xml_index.dll depend on another library which isn't
on your PATH?


Hitoshi Harada

In response to

pgsql-hackers by date

Next:From: Jeff DavisDate: 2010-04-09 21:34:44
Subject: Re: extended operator classes vs. type interfaces
Previous:From: Necati BaturDate: 2010-04-09 21:12:04
Subject: Re: GSOC PostgreSQL partitioning issue

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group