Getting Error while connect to DB2 from Cygwin 64-bit
Brian Inglis
Brian.Inglis@Shaw.ca
Tue Apr 4 20:13:47 GMT 2023
On 2023-04-04 13:55, Brian Inglis via Cygwin wrote:
> On 2023-04-04 01:54, Andrey Repin wrote:
>>> I'm getting below errors while trying to connect IBM DB2 from 64-bit
>>> Cygwin. Please find the below mentioned details.
>>> 1)Trying to compile the program using DB2_LIBRARY="C:/Program
>>> Files/IBM/SQLLIB/lib/db2api.lib" on 64-bit Cygwin.
>> Is this a Cygwin or native target binary?
>>> *ERROR:*
>>> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: *internal
>>> error:* aborting at
>>> /mnt/share/cygpkgs/binutils/binutils.x86_64/src/binutils-2.40/ld/ldlang.c:527
>>> in compare_section
>>> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: *please
>>> report this bug*
>> It seems to me you are trying to mix Cygwin and native Windows code.
>> Don't do that without a very, very good understanding of implications.
>> If you are building using binary code provided by 3rd party vendor,
>> chances are high you are looking at native code and you have to use mingw32
>> cross-compiler for that build.
> Presumably these are Windows libraries so you liekly have to use Mingw binutils
> mingw64-x86_64-binutils /usr/x86_64-w64-mingw32/bin/ and mingw64-x86_64-gcc-core
> /usr/lib/gcc/x86_64-w64-mingw32/11/ packages under their respective paths, after
> reading up more about how to use them.
Or not: https://www.ibm.com/docs/en/db2/11.5?topic=compilers-c
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
More information about the Cygwin
mailing list