Unable to open file 'ORACLEUNIPROVIDER.OBJ'
Posted: Tue 26 Feb 2013 17:30
This is probably an old issue with C++. I'm using XE3, Update 1, UniDac 4.5.10 (not the very latest - the changelog doesn't seem to touch these issues).
After creating a new project, just dropping a TOracleUniProvider on a form and attempting to compile will give the error:
[ilink32 Error] Fatal: Unable to open file 'ORACLEUNIPROVIDER.OBJ'
There seems to be an old solution from some years ago, to manually edit the .cbproj and add the required oraprovider170.lib on the "proper" place. That is kinda messy. Isn't there any cleaner solution?
I've been adding
#ifdef USEPACKAGES
#pragma link "OraProvider170.bpi"
#else
#pragma comment(lib, "oraprovider170")
#endif
to the main form .cpp (before the #pragma link "OracleUniProvider") and it *seems* to work, but I'm unsure if that's ok.
The second issue, maybe not related, is that if I enable madExcept (4.0.5) on that same project above that uses TOracleUniProvider, attempting to just launch the application will crash with:
---------------------------
Debugger Exception Notification
---------------------------
Project SimpleTest.exe raised exception class $C0000005 with message 'access violation at 0x00000000: read of address 0x00000000'.
---------------------------
Break Continue Help
---------------------------
Any ideas?
Project was compiled with all default options: Link with Dynamic RTL = true; Link with runtime packages = true;
Edit: Add the testing for USEPACKAGES
After creating a new project, just dropping a TOracleUniProvider on a form and attempting to compile will give the error:
[ilink32 Error] Fatal: Unable to open file 'ORACLEUNIPROVIDER.OBJ'
There seems to be an old solution from some years ago, to manually edit the .cbproj and add the required oraprovider170.lib on the "proper" place. That is kinda messy. Isn't there any cleaner solution?
I've been adding
#ifdef USEPACKAGES
#pragma link "OraProvider170.bpi"
#else
#pragma comment(lib, "oraprovider170")
#endif
to the main form .cpp (before the #pragma link "OracleUniProvider") and it *seems* to work, but I'm unsure if that's ok.
The second issue, maybe not related, is that if I enable madExcept (4.0.5) on that same project above that uses TOracleUniProvider, attempting to just launch the application will crash with:
---------------------------
Debugger Exception Notification
---------------------------
Project SimpleTest.exe raised exception class $C0000005 with message 'access violation at 0x00000000: read of address 0x00000000'.
---------------------------
Break Continue Help
---------------------------
Any ideas?
Project was compiled with all default options: Link with Dynamic RTL = true; Link with runtime packages = true;
Edit: Add the testing for USEPACKAGES