OK, I fixed it by changing to a 64-bit compile, which was necessary anyways because it has to work with a 64-bit install of PostgreSQL. I’m still curious about how I would have fixed that if I needed the 32-bit version though. -------------------------------------------------------- Dan Cooperstock From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of Dan Cooperstock at Software4Nonprofits 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@4 referenced in function _getSoundex@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 |