Hi,
I built a program under MinGW which is linked against the Oracle-libraries (oci.dll).
For this purpose I created an import-lib liboci.a from oci.dll and linked against this import-lib.
I could run the program under MinGW successful.
Now I created this program from within CB (same defines, compiler options..., linked
against same libs as under pure MinGW).
When I start the executable created by CB it fails to connect to the Oracle-database,
because the OCI-Interface is not properly initialized (a call to a method otl_initialize fails
and as a result I can not connect to an Oracle database).
I looked with the "dependency walker program" inside both EXEs and the static dependencies
were the same for both EXEs(MinGW and CB).
I started to run both EXEs inside "dependency walker program" and I saw that the
"pure MinGW Executable" loads oci.dll and OraOCIEI10.dll but "CB Executable" does not.
You can see both traces here:
http://www.randspringer.de/tora/tora.txt (OK, pure MinGW)
http://www.randspringer.de/tora/cb-tora.txt (Oracle initialize error,
Codeblocks EXE)
The PATH variable is the same for both EXEs (I started both from within the same directory
in the same MSYS terminal).
Can someone explain why the dll is loaded in MinGW-EXE and not in CB-EXE ?
I'm a newbie to CB, I used a CB version from a nightly snapshot some days ago.
Thomas