C-Language Fun on VC2005 ERROR: could not load library - Mailing list pgsql-hackers

From chaoyong wang
Subject C-Language Fun on VC2005 ERROR: could not load library
Date
Msg-id BAY119-W10AB9F5717E2FBA2CE3545E5150@phx.gbl
Whole thread Raw
Responses Re: C-Language Fun on VC2005 ERROR: could not load library  (Hitoshi Harada <umi.tanuki@gmail.com>)
List pgsql-hackers
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 Mkvcbuild.pm and config.pl. 

    But after I executed the following commands:
        build DEBUG
        perl install.pl "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'
        LANGUAGE C STRICT IMMUTABLE;

    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.

Best Regards
Cristian


Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.

pgsql-hackers by date:

Previous
From: Takahiro Itagaki
Date:
Subject: Re: GSOC PostgreSQL partitioning issue
Next
From: Greg Stark
Date:
Subject: Re: a faster compression algorithm for pg_dump