C++ Builder XE ILINK32 Error Providers OBJ

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
execoma
Posts: 9
Joined: Thu 27 Jan 2011 14:10

C++ Builder XE ILINK32 Error Providers OBJ

Post by execoma » Thu 13 Mar 2014 10:33

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
Last edited by execoma on Thu 13 Mar 2014 10:40, edited 1 time in total.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: C++ Builder XE ILINK32 Error Providers OBJ

Post by AlexP » Thu 13 Mar 2014 10:38

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

execoma
Posts: 9
Joined: Thu 27 Jan 2011 14:10

Re: C++ Builder XE ILINK32 Error Providers OBJ

Post by execoma » Thu 13 Mar 2014 10:41

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?

execoma
Posts: 9
Joined: Thu 27 Jan 2011 14:10

Re: C++ Builder XE ILINK32 Error Providers OBJ

Post by execoma » Thu 13 Mar 2014 11:25

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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: C++ Builder XE ILINK32 Error Providers OBJ

Post by AlexP » Wed 19 Mar 2014 14:08

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")

execoma
Posts: 9
Joined: Thu 27 Jan 2011 14:10

Re: C++ Builder XE ILINK32 Error Providers OBJ

Post by execoma » Thu 20 Mar 2014 14:04

Super! Thank you! :)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: C++ Builder XE ILINK32 Error Providers OBJ

Post by AlexP » Fri 21 Mar 2014 13:37

Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.

Post Reply