How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
Flattit
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 21.06.2020, 09:45

How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by Flattit »

Hallo,

I installed zeosdbo-7.2.6.1-stable in Embarcadero C++ Builder 10.3.

At design time data are correctly read but when I try to compile this error appears:

[ilink32 Error] Fatal: Unable to open file 'ZABSTRACTCONNECTION.OBJ'

I found the source file but the obj file has not be created.

Could you kindly help me in solving the problem?

Thanks,
Federico

Image
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by marsupilami »

Hello Federico,

on my System the ZAbstractConnection.obj can be found in packages\CBuilderXE10.4\Win32\Release\Lib. Did you follow the manual exactly?

Best regards,

Jan
Flattit
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 21.06.2020, 09:45

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by Flattit »

Hallo Jan,

in C:\MyComponents\ZeosDBO\packages\CBuilderXE10.2\Win32\Release\Lib I have only bpi and lib files:

Image

I can't find that obj file anywhere on the PC :(

And, yes... I followed the manual included in zeosdbo-7.2.6.1-stable.zip (package CBuilderXE10.2) exactly.

So does zeosdbo-7.2.6.1-stable work also in C++ Builder 10.4?

Thanks, ciao,
Federico
Last edited by Flattit on 25.06.2020, 14:10, edited 1 time in total.
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by miab3 »

And what do you have in staticobjs?

Michal
Flattit
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 21.06.2020, 09:45

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by Flattit »

Hallo Michal,

the folder "staticobjs" contains these files:

Image

Here https://www.dropbox.com/s/3rx6wweyya0m5 ... s.zip?dl=0 you find my "MyComponents" folder so, if you want, you can check its content to better see what's wrong.

Thanks, ciao,
Federico
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by marsupilami »

Hello Federico,

yes - the packages also seem to work on C++ Builder XE 10.4. Unfortunately I uninstalled C++ Builder XE 10.3 to get enough space for Delphi XE 10.4 ;)

I couldn't get my C++ Builder to not build obj files. So I can only assume that something is wrong with the distributed package files - or some modifications you did. Could you please check out the current Zeos 7.2 from SVN or download a snapshot of the current Zeos 7.2 SVN and try again? Please don't do any modifications to the packages before compiling. For a first test it should be enough to compile ZCore. That already should create some obj files in your lib folder.

Best regards,

Jan
Flattit
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 21.06.2020, 09:45

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by Flattit »

Hallo Jan,

when I end to compile the first 5 bpls of the project group "ZeosDbo" the folder C:\MyComponents\ZeosDBO\packages\CBuilderXE10.2\Win32\Release\Lib is full of dcu files, indluding "ZAbstractConnection.dcu".

I noticed that when I install "ZComponentDesign250.bpl" all the dcu files are deleted.

I solved with this approach:
I compiled the 5 bpls, I made a backup of the "Lib" folder, I installed "ZComponentDesign250.bpl" and finally I pasted the "backuped" dcu files to the "Lib" folder: now the test project is compiled and linked perfectly :D

So is C++ Builder able to use indifferently dcu and obj files?

Thanks, ciao,
Federico

PS
1) Is there a section somewhere with listed the wellknowed bugs of ZeosLib to be aware?
2) Where can I find a full guide of ZeosLib (if possible in C++) with descriptions of methods and properties of components?
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by marsupilami »

Hello Federico,
Flattit wrote: 26.06.2020, 08:13 when I end to compile the first 5 bpls of the project group "ZeosDbo" the folder C:\MyComponents\ZeosDBO\packages\CBuilderXE10.2\Win32\Release\Lib is full of dcu files, indluding "ZAbstractConnection.dcu".
That is good. So the files are generated.
Flattit wrote: 26.06.2020, 08:13I noticed that when I install "ZComponentDesign250.bpl" all the dcu files are deleted.
I seem to remember that the package manual says something about cleanup tasks. Maybe it cleans up too much...
Flattit wrote: 26.06.2020, 08:13 now the test project is compiled and linked perfectly :D
Good :)
Flattit wrote: 26.06.2020, 08:13 So is C++ Builder able to use indifferently dcu and obj files?
I assume that C++ Builder needs both file types. The DCU and the OBJ files. But I don't know. I don't work with C++ Builder.
Flattit wrote: 26.06.2020, 08:13 1) Is there a section somewhere with listed the wellknowed bugs of ZeosLib to be aware?
That depends. We don't have a known bugs document. I try to collect known issues in the release notes if they cannot be fixed or if they will be fixed in a later version. Open bugs can be seen in the bug tracker. Bugs that are fixed in the SVN but are not yet part of a release version can be found in the bug tracker but will be closed there. If you have questions about possible bugs, just ask here.
Flattit wrote: 26.06.2020, 08:132) Where can I find a full guide of ZeosLib (if possible in C++) with descriptions of methods and properties of components?
Unfortunately we don't have a complete documentation currently. We do have the Zeos Documentation Collection that gives an introduction on how to use Zeos. We try to rework it, so it gets better. There are a lot of comments ion the code but we still need to find a way to convert them to documentation (again). So - I can only ask you to ask questions here, if you have questions about Zeos features or functionality.

Best regards,

Jan
Flattit
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 21.06.2020, 09:45

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by Flattit »

Hallo Jan,

thank you very much for your exhaustive reply.

As regards the basic use/functionalities of basic components (connection, query, table, procedure, ...) does ZeosLib behave as FireDAC?

Thanks again, kind regards,
Federico
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: How to solve "Unable to open file 'ZABSTRACTCONNECTION.OBJ'" error?

Post by miab3 »

Flattit wrote: 26.06.2020, 13:17 As regards the basic use/functionalities of basic components (connection, query, table, procedure, ...) does ZeosLib behave as FireDAC?
It behaves like FireDAC, UniDAC or other access libraries to SQL databases.
What's more, it allows you to easily move to Lazarus.

Michal
Post Reply