Re: C functions under windows

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Islam Hegazy <islheg(at)gmail(dot)com>
Cc: Andrei Kovalevski <andyk(at)commandprompt(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: C functions under windows
Date: 2007-05-03 17:16:17
Message-ID: 463A18E1.1030104@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Islam Hegazy wrote:
> I have added the path to the include directory of postgresql but it
> hasn't already some of the files that are in linux include path like
> <strings.h>. It doesn't object about postgres.h which it can find now
> but it objects about strings.h
>
> I use MSVC6 to make my dll file.

The include files that ship with your version are made for MingW, not MSVC.

You could try grabbing pg_config.h.win32 from src/include (I think it's
available in the source distribution of 8.2, if not, just get one from a
snapshot version). Then take that file and overwrite your copy of
pg_config.h with it.

strings.h is one of the differences between msvc and mingw.

//Magnus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message William Garrison 2007-05-03 18:11:57 Re: varchar as primary key
Previous Message Listmail 2007-05-03 17:12:52 Re: Have I b0rked something? Slow comparisons on "where x in (...)"