Re: C functions under windows

From: "Martin Gainty" <mgainty(at)hotmail(dot)com>
To: "Andrei Kovalevski" <andyk(at)commandprompt(dot)com>, <pgsql-general(at)postgresql(dot)org>, "Islam Hegazy" <islheg(at)gmail(dot)com>
Subject: Re: C functions under windows
Date: 2007-05-03 15:23:04
Message-ID: BAY133-DAV102896B86B0561F6514459AE410@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrei-

*If you're developing under nix* then I would use windows cygwin (bash
shell) e.g.
\cygwin\cygwin.bat
cd /
find . -name strings.h
you will see /usr/include
but this version of strings.h only includes string.h
to bring into environment make sure you include the /usr/include in .profile
or .bashrc e.g.
export INCLUDE=/usr/include:$INCLUDE
(then run your compile/link/make utilties)

HTH
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.

----- Original Message -----

> Islam Hegazy wrote:
>> Hi all
>> I have postgresql server installed on a windows machine and I want to
>> retrieve data using C functions. I followed the steps in the
>> documentation but it didn't work for windows. I created a .dll projects
>> for my functions but postgres.h calls .h files that I can't find on the
>> windows machine like <strings.h>. I tested my functions on another
>> server installed on a linix machine and it worked correctly. So the
>> problem appears to be in the include files under windows.
>> Any idea how to solve this problem...
>> Regards
>> Islam Hegazy
>
> If you use MSVC - try to setup 'Additional include directories' for your
> project. It should point to the PostgreSQL 'include' folder.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-05-03 15:24:01 Re: Update violating constraint
Previous Message Leif B. Kristensen 2007-05-03 15:18:50 Re: Feature request - have postgresql log warning when new sub-release comes out.