Cannot compile libpq for Win 32 Environment

Поиск
Список
Период
Сортировка
Искать

Cannot compile libpq for Win 32 Environment

От:
Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
Дата:
I'm using Postgresql 7.3.4 on Red Hat Linux 9, everything works fine.

I'm trying to compile Postgre client for Win 32 plattform using VC++ 7 compiler
running following command under src directory:

nmake /f win32.mak ALL

When make is executed, following error occurs:

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
       link.exe @D:\Temp\nm3D.tmp
LINK : fatal error LNK1181: cannot open input file 'odbc32.lib'
NMAKE : fatal error U1077: 'link.exe' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"P:\Program
Files\Microsoft.NET\SDK\v1.1\Bin\nmake.e
xe"' : return code '0x2'
Stop.

I don't know if some libraries are missing, but I don't know what files are
missed.

I appreciate some help.

Best Regards.

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Re: Cannot compile libpq for Win 32 Environment

От:
"Jeroen T. Vermeulen" <jtv@xs4all.nl>
Дата:
On Mon, Feb 09, 2004 at 09:57:37AM -0800, Daniel Gerardo Lucero Baylon wrote:
> 
>         link.exe @D:\Temp\nm3D.tmp
> LINK : fatal error LNK1181: cannot open input file 'odbc32.lib'
> NMAKE : fatal error U1077: 'link.exe' : return code '0x49d'
> Stop.

If you're using libpq, you really shouldn't need the odbc library.

> I don't know if some libraries are missing, but I don't know what files are
> missed.

Well, obviously it can't find odbc32.lib.  But that probably doesn't
matter!  Just edit your project's link options and take this name out
of the list of libraries.  Then try again.


Jeroen


FAQ