Page 1 of 1

C++ Builder XE ILINK32 Error Providers OBJ

Posted: Thu 13 Mar 2014 10:33
by execoma
Hello!
Previously, I used UniDAC 4.1.3. Everything was ok. Now install the latest 5.2.7 (25-Feb-2014).

1. Disable runtime packages.
2. Add any provider on the form.
3. Add pragma LIB.

Example:
If TSQLiteUniProvider:

Code: Select all

//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "liteprovider150.lib" // <-- added
#pragma link "SQLiteUniProvider"
#pragma link "UniProvider"
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
[ILINK32 Error] Fatal: Unable to open file 'LITEPROVIDER150.OBJ'

Without #pragma link "SQLiteUniProvider" the same error.
Without #pragma link "liteprovider150.lib" the same error.
If add lib in project the same error.
Always the same error.

I can't build my project standalone.

IDE: C++ Builder XE
OS: Windows 7 x64
Project: VCL x32

Re: C++ Builder XE ILINK32 Error Providers OBJ

Posted: Thu 13 Mar 2014 10:38
by AlexP
Hello,

We reproduced the problem only on a 64-bit platform, and it's not reproduced on a 32-bit platform. We are investigating the reasons of such behavior

Re: C++ Builder XE ILINK32 Error Providers OBJ

Posted: Thu 13 Mar 2014 10:41
by execoma
AlexP wrote:Hello,

We reproduced the problem only on a 64-bit platform, and it's not reproduced on a 32-bit platform. We are investigating the reasons of such behavior
What do I do now? Where to find this OBJ? If you give me this files, it will all work?

Re: C++ Builder XE ILINK32 Error Providers OBJ

Posted: Thu 13 Mar 2014 11:25
by execoma
This problem begins from 5.0.1 (26-Apr-2013). Spend investigation for nearly a year. It seems that you have already decided not to deal with this.

Re: C++ Builder XE ILINK32 Error Providers OBJ

Posted: Wed 19 Mar 2014 14:08
by AlexP
For the time being, to solve the problem, you can modify the SQLiteUniProvider.hpp file in the following way:

replace the line

Code: Select all

#pragma comment(lib, "liteprovider150")
with

Code: Select all

#pragma comment(lib, "liteprovider150.lib")

Re: C++ Builder XE ILINK32 Error Providers OBJ

Posted: Thu 20 Mar 2014 14:04
by execoma
Super! Thank you! :)

Re: C++ Builder XE ILINK32 Error Providers OBJ

Posted: Fri 21 Mar 2014 13:37
by AlexP
Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.