Re: MSVC 2003 compile error with pg8.3.3 - Mailing list pgsql-hackers

From Hiroshi Saito
Subject Re: MSVC 2003 compile error with pg8.3.3
Date
Msg-id 018101c8d7ab$9f8c9870$0c01a8c0@IBMC9A0F63B40D
Whole thread Raw
In response to MSVC 2003 compile error with pg8.3.3  (Jeff McKenna <jmckenna@gatewaygeomatics.com>)
Responses Re: MSVC 2003 compile error with pg8.3.3
List pgsql-hackers
Hi.

Um, Please try this.

#include<windows.h>
extern void __cdecl _dosmaperr( unsigned long oserrno );
int main(int argc, char *argv[])
{       _dosmaperr(GetLastError());       return(0);
}

Can errorless compile be performed? 

Regards,
Hiroshi Saito

----- Original Message ----- 
From: "Jeff McKenna" <jmckenna@gatewaygeomatics.com>
To: "pgsql-hackers" <pgsql-hackers@postgresql.org>
Sent: Thursday, June 26, 2008 10:04 PM
Subject: Re: [HACKERS] MSVC 2003 compile error with pg8.3.3


> Thanks Hiroshi.  Unfortunately libpq.dll does not compile with MSVC  
> 2003.  Has anyone successfully compiled libpq for 8.3.3 (or CVS head)  
> with MSVC 2003??
> 
> 
> ---
> Jeff McKenna
> FOSS4G Consulting and Training Services
> http://www.gatewaygeomatics.com/
> 
> 
> 
> 
> 
> On 24-Jun-08, at 8:31 PM, Hiroshi Saito wrote:
> 
>> Hi.
>>
>> It is strange...
>> Problem is not reproduced although I use VC2005.
>>
>> The result of my nmake -f win32.mak is this. ...
>> Microsoft (R) Manifest Tool version 5.2.3790.2014
>> Copyright (c) Microsoft Corporation 2005.
>> All rights reserved.
>>       cd ..\..
>>       echo All Win32 parts have been built!
>> All Win32 parts have been built!
>>
>> C:\MinGW\home\HIROSHI\postgresql-8.3.3\src>
>>
>> It may be necessary to investigate the reference relation of VC2003.
>> Does someone notice some?
>> Regards,
>> Hiroshi Saito
>> ----- Original Message ----- From: "Jeff McKenna" <jmckenna@gatewaygeomatics.com 
>> >
>>
>>
>>> Hello,
>>> I am trying to compile libpq.dll with MSVC 2003 on windows, using   
>>> postgresql-8.3.3, but I get the following compile error:
>>>   Creating library .\Release\libpqdll.lib and object .\Release  
>>> \libpqdll.exp
>>> libpq.lib(dirmod.obj) : error LNK2019: unresolved external symbol   
>>> __dosmaperr r
>>> ferenced in function _pgwin32_safestat
>>> libpq.lib(dirent.obj) : error LNK2001: unresolved external symbol   
>>> __dosmaperr
>>> .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals
>>> NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
>>> Stop.
>>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual   
>>> Studio .NET 2003
>>> VC7\BIN\nmake.exe"' : return code '0x2'
>>> Stop.
>>> Does anyone have any ideas how to solve this??
>>> thanks.
>>> -jeff
>>> ---
>>> Jeff McKenna
>>> FOSS4G Consulting and Training Services
>>> http://www.gatewaygeomatics.com/
>>> -- 
>>> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-hackers
>>
>> -- 
>> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-hackers
> 
> 
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Latest on CITEXT 2.0
Next
From: Simon Riggs
Date:
Subject: Re: Planner creating ineffective plans on LEFT OUTER joins