From: | "Andreas Gidlund" <vaxis(at)hotmail(dot)com> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Compilations failing |
Date: | 2006-09-26 22:41:04 |
Message-ID: | BAY103-F21476A439008E75231FFA5BA250@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
I have a problem when compiling libpqxx with the tools from VS.NET 2005 for
use on Windows XP.
Let me tell the story from the beginning: I installed the postgresql msi
distribution for windows. I checked all the development features during the
installation. So in the installation folder there is a libpq.dll in the /bin
folder. The database itself is working and I have been able to add tables
etc.
However, after downloading libpqxx, as I wanted to compile and use it, I ran
into problems. First, after having creating the common file in the win32
folder and when I was to change the paths inside, all three paths did not
comply with my installation. First for the path to the source code, I
installed by using the msi distribution and hence did not have the source at
hand.
Therefore I downloaded the source and put it in a /src folder in the
installed root folder of postgre. After that I pointed to this /src folder
in the common file. The next two paths should point to a /debug and /release
folder for the compiled libpq, but the only compiled file I have is the
libpq.dll in the /bin folder.
I read that the /debug and /release folders will be created when compiling
libpq by calling "nmake /f win32.mak" in the src/interfaces/libpq folder. So
after running vcvars32.bat in the visual studio folder to enable nmake and
thereafter executing the call "nmake /f win32.mak", I get the following
error:
------------------------------
Building the Win32 static library...
cl.exe @C:\DOCUME~1\Andreas\LOCALS~1\Temp\nm75.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will
be re
moved in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
wchar.c
..\..\backend\utils\mb\wchar.c(100) : error C2054: expected '(' to follow
'inlin
e'
..\..\backend\utils\mb\wchar.c(101) : error C2085: 'pg_euc_mblen' : not in
forma
l parameter list
..\..\backend\utils\mb\wchar.c(101) : error C2143: syntax error : missing
';' be
fore '{'
..\..\backend\utils\mb\wchar.c(116) : error C2054: expected '(' to follow
'inlin
e'
..\..\backend\utils\mb\wchar.c(117) : error C2085: 'pg_euc_dsplen' : not in
form
al parameter list
..\..\backend\utils\mb\wchar.c(117) : error C2143: syntax error : missing
';' be
fore '{'
..\..\backend\utils\mb\wchar.c(143) : warning C4013: 'pg_euc_mblen'
undefined; a
ssuming extern returning int
..\..\backend\utils\mb\wchar.c(180) : warning C4013: 'pg_euc_dsplen'
undefined;
assuming extern returning int
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\c
l.exe"' : return code '0x2'
Stop.
--------------------------------------------
Does someone have an idea what the problem can be?
_________________________________________________________________
Premiär 17/11 för Casino Royale! http://www.msn.se/noje/casinoroyale/
From | Date | Subject | |
---|---|---|---|
Next Message | Jeroen T. Vermeulen | 2006-09-27 03:23:41 | Re: Compilations failing |
Previous Message | Tom Lane | 2006-09-23 18:53:58 | Re: PQsetdbLogin() and PQconnectdb() fail on HPUX11i 64 bits with empty servername |