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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Problem with compiling C function



2008/1/9, Maciej Grygorcewicz :
> But linker threw such errors:
> "
>  Unresolved External: _pgwin32_fopen referended from .... // and so on
>  Unresolved External: _pg_sprintfl referended from .... // and so on "
>
> Why???? I have included postgres.h , and all other required files .

-lpgport is needed.

> I tried to build almost the same code but in C++ style DLL.
> DLL file was created succesfully , but on the other hand postgreSQL couldn't
> find exported function...
> DLL was in non-undernstadable format for postgresql.

for c++ you have to wrap the postgresql functions into extern "C".

-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/
http://spacemovie.mur.at/   http://helsinki.at/



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group