Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6D89B9FB482 for ; Tue, 26 Sep 2006 19:41:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 19752-05 for ; Tue, 26 Sep 2006 19:41:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from bay0-omc1-s7.bay0.hotmail.com (bay0-omc1-s7.bay0.hotmail.com [65.54.246.79]) by postgresql.org (Postfix) with ESMTP id 0F81B9FB474 for ; Tue, 26 Sep 2006 19:41:07 -0300 (ADT) Received: from hotmail.com ([65.54.174.31]) by bay0-omc1-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 26 Sep 2006 15:41:06 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 26 Sep 2006 15:41:06 -0700 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Tue, 26 Sep 2006 22:41:04 GMT X-Originating-IP: [189.163.176.248] X-Originating-Email: [vaxis@hotmail.com] X-Sender: vaxis@hotmail.com From: "Andreas Gidlund" To: pgsql-interfaces@postgresql.org Subject: Compilations failing Date: Wed, 27 Sep 2006 00:41:04 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 26 Sep 2006 22:41:06.0369 (UTC) FILETIME=[DA913B10:01C6E1BC] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.907 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200609/25 X-Sequence-Number: 6270 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/