C-Language Function on VC2005: could not load library ERROR

Поиск
Список
Период
Сортировка
От chaoyong wang
Тема C-Language Function on VC2005: could not load library ERROR
Дата
Msg-id BAY119-W390FE87B145D66114E3981E5150@phx.gbl
обсуждение исходный текст
Ответы Re: C-Language Function on VC2005: could not load library ERROR  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
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 for all replies.

Best Regards
Cristian


Hotmail: Trusted email with powerful SPAM protection. Sign up now.

В списке pgsql-general по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Unable to uninstall postgres from Add/Remove programs
Следующее
От: Kenichiro Tanaka
Дата:
Сообщение: Re: when i logged in mydb,any sql command used to list all the tables in this mydb?