Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
-
cerberus2010
- Posts: 2
- Joined: Tue 24 May 2011 06:56
- Location: Leipzig
Post
by cerberus2010 » Tue 24 May 2011 07:05
When I create a new project in Rad studio XE, I use UniConnection and SQLiteUniProvider, but when I compile the project, I get the Error :[ILINK32 Error] Fatal: Unable to open file 'SQLITEUNIPROVIDER.OBJ'.
my code in the *.cpp
Code: Select all
#include
#pragma hdrstop
#include "uTest.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "DBAccess"
#pragma link "MemDS"
#pragma link "SQLiteUniProvider"
#pragma link "Uni"
#pragma link "UniProvider"
#pragma resource "*.dfm"
TForm1 *Form1;
[/code]
best regards
-
AlexP
- Devart Team
- Posts: 5530
- Joined: Tue 10 Aug 2010 11:35
Post
by AlexP » Tue 24 May 2011 10:59
Hello,
To work with SqliteUniProvider d C++ Builder, you must change the following code:
#pragma link "SQLiteUniProvider"
to
#pragma link "liteprovider150.lib"
The same is true for the rest of the providers.
Last edited by
AlexP on Fri 30 Sep 2011 07:36, edited 1 time in total.
-
AlexP
- Devart Team
- Posts: 5530
- Joined: Tue 10 Aug 2010 11:35
Post
by AlexP » Thu 26 May 2011 05:39
Hello,
If any other questions come up, please contact us.
-
gunslinger
- Posts: 2
- Joined: Fri 23 Sep 2011 09:45
Post
by gunslinger » Fri 23 Sep 2011 09:58
Same problem. But after replacing
#pragma link "SQLiteUniProvider"
to
#pragma link "liteprovider150.lib"
I get next error:
[ILINK32 Error] Fatal: Unable to open file 'LITEPROVIDER150.LIB'
P.S.: IDE - C++ Builder 2007 (CodeGear RAD Studio 11.0).
-
AlexP
- Devart Team
- Posts: 5530
- Joined: Tue 10 Aug 2010 11:35
Post
by AlexP » Fri 23 Sep 2011 10:19
Hello,
You should use the following liteprovider105.lib file for Rad Studio 2007:
Code: Select all
#pragma link "liteprovider105.lib"
-
gunslinger
- Posts: 2
- Joined: Fri 23 Sep 2011 09:45
Post
by gunslinger » Fri 23 Sep 2011 11:38
Thank you very much. It works now.
Last edited by
gunslinger on Fri 23 Sep 2011 22:10, edited 1 time in total.
-
AlexP
- Devart Team
- Posts: 5530
- Joined: Tue 10 Aug 2010 11:35
Post
by AlexP » Fri 23 Sep 2011 11:54
Hello,
It is good to see that this problem was solved. If you have any other questions, feel free to contact us.
-
MamProblem
- Posts: 13
- Joined: Mon 09 May 2011 11:11
Post
by MamProblem » Wed 28 Sep 2011 05:44
Hi!
Is there any way to avoid replacing or inserting '#pragma xxx.lib'? I need to do that with every project I start
-
AlexP
- Devart Team
- Posts: 5530
- Joined: Tue 10 Aug 2010 11:35
Post
by AlexP » Wed 28 Sep 2011 09:17
Hello,
It seems to be a RAD Studio bug. The installed package should be automatically added to the default list of included packages when you create a new project, but it doesn't always happen.
We are trying to resolve the problem.
For the time being you should change these lines in every new project.