compiling libpq.dll with Borland C++, is it possible?

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: compiling libpq.dll with Borland C++, is it possible?
Date: 2008-11-17 18:24:25
Message-ID: 4921B6D9.60507@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I am trying to compile my own copy of libpq.dll using bcc32.exe, the
docs say it is possible, but I get a error when it tries to compile dirent.c
Has anyone been able to do this?

C:\postgresql-8.3.5\src\interfaces\libpq>make -N -DCFG=Release /f bcc32.mak
MAKE Version 5.3 Copyright (c) 1987, 2008 CodeGear
Building the Win32 DLL and Static Library...

Configuration "Release"

bcc32.exe @MAKE0014.@@@
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
..\..\port\dirent.c:
Error E2451 ..\..\port\dirent.c 35: Undefined symbol
'INVALID_FILE_ATTRIBUTES' in function opendir
Error E2451 ..\..\port\dirent.c 52: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 53: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 59: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 60: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 60: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 61: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 61: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 62: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 64: Undefined symbol 'dirname' in
function opendir
Error E2451 ..\..\port\dirent.c 65: Undefined symbol 'handle' in
function opendir
Error E2451 ..\..\port\dirent.c 66: Undefined symbol 'ret' in function
opendir
Error E2451 ..\..\port\dirent.c 67: Undefined symbol 'ret' in function
opendir
Error E2451 ..\..\port\dirent.c 77: Undefined symbol 'handle' in
function readdir
Error E2451 ..\..\port\dirent.c 79: Undefined symbol 'handle' in
function readdir
Error E2451 ..\..\port\dirent.c 79: Undefined symbol 'dirname' in
function readdir
Error E2451 ..\..\port\dirent.c 80: Undefined symbol 'handle' in
function readdir
Error E2451 ..\..\port\dirent.c 88: Undefined symbol 'handle' in
function readdir
Error E2451 ..\..\port\dirent.c 100: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 102: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 102: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 103: Undefined symbol 'ret' in function
readdir
Error E2451 ..\..\port\dirent.c 109: Undefined symbol 'handle' in
function closedir
Error E2451 ..\..\port\dirent.c 110: Undefined symbol 'handle' in
function closedir
Error E2451 ..\..\port\dirent.c 111: Undefined symbol 'dirname' in
function closedir
Error E2228 ..\..\port\dirent.c 111: Too many error or warning messages
in function closedir
*** 26 errors in Compile ***

** error 1 ** deleting ".\Release\dirent.obj"

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-11-17 18:27:29 Re: Fwd: Performance Tuning
Previous Message John Zhang 2008-11-17 18:21:48 Fwd: Performance Tuning