From: | "Dan Cooperstock at Software4Nonprofits" <info(at)software4nonprofits(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Problem compiling a C function on Windows - not finding _palloc0@4 |
Date: | 2017-08-01 16:21:25 |
Message-ID: | 003501d30ae2$39aad520$ad007f60$@software4nonprofits.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I'm trying to compile a C function into a DLL for use in PostgreSQL, with
Visual Studio. I'm linking in postgres.lib, but when the linker runs, I'm
getting "unresolved external symbol _palloc0(at)4 referenced in function
_getSoundex(at)4". The code is just calling palloc0. I suspect it's something
about the calling convention, but I've tried both __stdcall and _cdecl and I
get the same error.
I'm pre-declaring the function with PGDLLEXPORT to make sure it gets
exported.
Any thoughts? Thanks.
--------------------------------------------------------
Dan Cooperstock
DONATION and ACCOUNTS web site: http://www.Software4Nonprofits.com
Email: info(at)Software4Nonprofits(dot)com <mailto:info(at)Software4Nonprofits(dot)com>
Phone: 416-423-7722
Mail: 57 Gledhill Ave., Toronto ON M4C 5K7, Canada
If you do not want to receive any further emails from Software4Nonprofits,
please reply to this email with the subject line "UNSUBSCRIBE", and we will
immediately remove you from our mailing list, if you are on it.
From | Date | Subject | |
---|---|---|---|
Next Message | Dmitry Lazurkin | 2017-08-01 16:24:13 | Re: Perfomance of IN-clause with many elements and possible solutions |
Previous Message | Jeff Janes | 2017-08-01 16:13:33 | Re: Perfomance of IN-clause with many elements and possible solutions |