pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Libpq and Borland C++ Builder 4
3+ messages / 2 participants
[nested] [flat]

* Libpq and Borland C++ Builder 4
@ 1999-07-08 09:22  Jean-Christophe FABRE <fabrejc@ensam.inra.fr>
  0 siblings, 0 replies; 3+ messages in thread

From: Jean-Christophe FABRE @ 1999-07-08 09:22 UTC (permalink / raw)
  To: pgsql-interfaces

Hi!

When I try to use the libpq.lib (from the win32 psql.exe interface tool)
library with BC++ Builder, I get a message : LIBPQ.LIB contains invalid
OMF record, type 0x21 (possibly COFF).

First of all, what are OMF and COFF ?

I've found a tool (in C++Builder bin directory) to convert COFF2OMF, but
it didn't work.

Does anybody has a re-compiled libpq.lib which works fine with
C++Builder 4 ?

Please help!

Thanks

JC.Fabre




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: [INTERFACES] Libpq and Borland C++ Builder 4
@ 1999-07-08 09:31  Ansley, Michael <Michael.Ansley@intec.co.za>
  0 siblings, 0 replies; 3+ messages in thread

From: Ansley, Michael @ 1999-07-08 09:31 UTC (permalink / raw)
  To: pgsql-interfaces

Welcome to the world of Win32.  There are several different object formats
when you are compiling under Win32.  It would appear that this error is
caused by your linker expecting one type when it actually gets another.
There may be an option somewhere to adjust your linker settings to cope with
a different object format.
This is a problem that is generally not experienced under UNIX, because
there is only one object format (that I'm aware of).

I'm not sure why you rconversion tool is not working, though, I suggest
getting hold of Inprise.


MikeA


>> When I try to use the libpq.lib (from the win32 psql.exe 
>> interface tool)
>> library with BC++ Builder, I get a message : LIBPQ.LIB 
>> contains invalid
>> OMF record, type 0x21 (possibly COFF).
>> 
>> First of all, what are OMF and COFF ?
>> 
>> I've found a tool (in C++Builder bin directory) to convert 
>> COFF2OMF, but
>> it didn't work.
>> 
>> Does anybody has a re-compiled libpq.lib which works fine with
>> C++Builder 4 ?
>> 
>> Please help!
>> 
>> Thanks
>> 
>> JC.Fabre
>> 
>> 



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: [INTERFACES] Libpq and Borland C++ Builder 4
@ 1999-07-08 11:13  Ansley, Michael <Michael.Ansley@intec.co.za>
  0 siblings, 0 replies; 3+ messages in thread

From: Ansley, Michael @ 1999-07-08 11:13 UTC (permalink / raw)
  To: pgsql-interfaces

Perhaps you should just get hold of the Win32 source, and compile the entire
library again.  This would probably be the easiest solution.  I think that
the format that it is in is what VC++ uses.  I seem to remember trying it
out a while back.  However, if you get the source code, it shouldn't be a
problem to compile it.
>> 
>> Welcome to the world of Win32.  There are several different 
>> object formats
>> when you are compiling under Win32.  It would appear that 
>> this error is
>> caused by your linker expecting one type when it actually 
>> gets another.
>> There may be an option somewhere to adjust your linker 
>> settings to cope with
>> a different object format.
>> This is a problem that is generally not experienced under 
>> UNIX, because
>> there is only one object format (that I'm aware of).
>> 
>> I'm not sure why you rconversion tool is not working, 
>> though, I suggest
>> getting hold of Inprise.
>> 
>> 
>> MikeA
>> 
>> 
>> >> When I try to use the libpq.lib (from the win32 psql.exe 
>> >> interface tool)
>> >> library with BC++ Builder, I get a message : LIBPQ.LIB 
>> >> contains invalid
>> >> OMF record, type 0x21 (possibly COFF).
>> >> 
>> >> First of all, what are OMF and COFF ?
>> >> 
>> >> I've found a tool (in C++Builder bin directory) to convert 
>> >> COFF2OMF, but
>> >> it didn't work.
>> >> 
>> >> Does anybody has a re-compiled libpq.lib which works fine with
>> >> C++Builder 4 ?
>> >> 
>> >> Please help!
>> >> 
>> >> Thanks
>> >> 
>> >> JC.Fabre
>> >> 
>> >> 
>> 



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~1999-07-08 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-07-08 09:22 Libpq and Borland C++ Builder 4 Jean-Christophe FABRE <fabrejc@ensam.inra.fr>
1999-07-08 09:31 RE: [INTERFACES] Libpq and Borland C++ Builder 4 Ansley, Michael <Michael.Ansley@intec.co.za>
1999-07-08 11:13 RE: [INTERFACES] Libpq and Borland C++ Builder 4 Ansley, Michael <Michael.Ansley@intec.co.za>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox