Hi,
I am able to use ona Windows 32 bit the ocilib library with MYSYS2 mingw32 with the Windows distribution of ocilib 32 bits.
When I compile exactly the same program on MYSYS2 64 bits, I get the follwoing error at link phase even if I point on ocilib 64 bits.
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_ConnectionFree' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_ConnectionCreate' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_ErrorGetStatement' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_ErrorGetOCICode' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_ErrorGetString' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
Makefile:36: recipe for target 'ExtractEgipte.exe' failed
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_Cleanup' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_Initialize' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_GetFloat2' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_GetString2' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_FetchNext' defined in .idata$5 section in C:/ocilib/lib64/ociliba.lib(ociliba.dll.b)
C:/ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): additional relocation java-scripts omitted from the output
Compiler option:
CC=gcc
CFLAGS = -g -m64 -std=c99 -I.
CFLAGS += `pkg-config --cflags libxml-2.0`
CFLAGS += `pkg-config --cflags gtk+-3.0`
CFLAGS += -IC:/ocilib/include
LD=gcc
LDFLAGS = -g -m64
LDFLAGS += `pkg-config --libs libxml-2.0`
LDFLAGS += `pkg-config --libs gtk+-3.0`
LDFLAGS += -LC:/ocilib/lib64
LDFLAGS += -lociliba
LDFLAGS += -lmysqlclient
I am working on Windows 7 64 bits
I have Oracle Client 64 bit installed
Could help me to generate my 64 bit version of my program.
Regards
André
|