Обсуждение: postgresql client under win 2k
I have postgresql 7.1 under current cygwin on top of win 2k.
I would now like to write clients UNDER WIN 2K for the server which runs
under cygwin on the same win 2K box.
When I try to nmake the source under VC++, I get errors which are listed at
the end. I have VC++ bins in the path.
Note, the windows source tree for postgresql is separate from cygwin source
tree.
I realize this is not strictly a cygwin postgresql issue, since my cygwin
postgresql is up and working. But the reason I am using cygwin postgresql
is to have win clients on the same box.
Thanks,
Ray
Output:-----------------------------------------
C:\postgresql-7.1\src>nmake /f win32.mak
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cd include
if not exist config.h copy config.h.win32 config.h
cd ..
cd interfaces\libpq
nmake /f win32.mak
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
if not exist ".\Release/" mkdir ".\Release"
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.
Parse Error 9
cl.exe @C:\WINDOWS\TEMP\nma00904.
Bad command or file name
cl.exe @C:\WINDOWS\TEMP\nmb00904.
Bad command or file name
link.exe -lib @C:\WINDOWS\TEMP\nmc00904.
Bad command or file name
cl.exe @C:\WINDOWS\TEMP\nmd00904.
Bad command or file name
rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
Bad command or file name
link.exe @C:\WINDOWS\TEMP\nme00904.
Bad command or file name
cd ..\..\bin\psql
nmake /f win32.mak
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
if not exist ".\Release/" mkdir ".\Release"
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.
Parse Error 9
cl.exe @C:\WINDOWS\TEMP\nma01036.
Bad command or file name
NMAKE : fatal error U1073: don't know how to make
'"..\..\interfaces\libpq\Relea
se\libpqdll.lib"'
Stop.
cd ..\..
echo All Win32 parts have been built!
All Win32 parts have been built!
C:\postgresql-7.1\src>
---------------------------------
Ray, On Tue, May 15, 2001 at 10:37:21AM -0700, Ray Golish wrote: > Hey, sorry to bother you but can you help with this post to > comp.databases.postgresql.ports.cygwin? Hmm... > Thanks for your time, > Ray > > ---------------------------------------------- > > I have postgresql 7.1 under current cygwin on top of win 2k. > > I would now like to write clients UNDER WIN 2K for the server which runs > under cygwin on the same win 2K box. Just curious, but why don't you use Cygwin's gcc instead? > When I try to nmake the source under VC++, I get errors which are listed at > the end. I have VC++ bins in the path. I just tried this myself and it worked as expected in my environment. The output below seems to indicate that your VC++ setup is not correct. What happens when you type "cl" at the command.com prompt? > Output:----------------------------------------- > > C:\postgresql-7.1\src>nmake /f win32.mak > > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > [snip] > > if not exist ".\Release/" mkdir ".\Release" > Microsoft(R) Windows DOS > (C)Copyright Microsoft Corp 1990-1999. > Parse Error 9 ^^^^^^^^^^^^^ The above seems to be suspicious. > cl.exe @C:\WINDOWS\TEMP\nma00904. > Bad command or file name ^^^^^^^^^^^^^^^^^^^^^^^^ The above seems to indicate that you cannot find cl.exe in your PATH. > cl.exe @C:\WINDOWS\TEMP\nmb00904. > Bad command or file name > link.exe -lib @C:\WINDOWS\TEMP\nmc00904. > Bad command or file name Ditto for link. > cl.exe @C:\WINDOWS\TEMP\nmd00904. > Bad command or file name > rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc Ditto for rc. Jason -- Jason Tishler Director, Software Engineering Phone: +1 (732) 264-8770 x235 Dot Hill Systems Corp. Fax: +1 (732) 264-8798 82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com Hazlet, NJ 07730 USA WWW: http://www.dothill.com
Take a look at http://www.jsg.dk/postgresql
Here you can find a MFC project version og libpq, and another project called PGAccess which make accessing postgreSQL very easy using dynasets.
Jakob Lund
I have made an easy to use MFC dll which uses ligpq to access data in a recordset manor. To get this dll swing,
swing by http://www.jsg.dk/postgresql
regards Jakob Simon-Gaarde