My program uses the gtkada contributions for multitasking and works
well. Now I am writing a plugin following the gnat examples. The
compiler then asks for gtkada contributions. When I include them, I get
the error message
gtk-persistent_storage_credentials_dialog-odbc.adb:28:06: file "persistent-odbc.ads" not found
among others. I found the missing packages in the simple components,
added them too, and now I get
synchronization-interprocess-process_call_service-generic_parameterless_function.ads:27:06:
file "synchronization-interprocess.ads" not found
and don't know how to continue.
I am on a Linux Mint (Ubuntu) machine.
gtkada contributions as well as simple components I caught as source,
and mention the corresponding directories in my project file in
Source_Dirs. As I am trying to write a plugin, this is a library project
of kind relocatable.
synchronization-interprocess-process_call_service-generic_parameterless_function.ads:27:06:
file "synchronization-interprocess.ads" not found
On 29.01.22 20:09, Dmitry A. Kazakov wrote:
On 2022-01-29 17:31, hreba wrote:--- snip ---
Source_Dirs. As I am trying to write a plugin, this is a library
project of kind relocatable.
Do you have your own gpr-file? The with-section and the private part
of synchronization-interprocess.ads is OS-dependent. In the provided
gpr-file it is selected by the Target_OS project scenario.
The source file for Linux is in the subdirectory os/linux.
Similarly, when using ODBC, you must select the right OS driver and
32- vs 64-bit because ODBC API depends on the choice.
The list of scenarios is here:
http://www.dmitry-kazakov.de/ada/components.htm#19
Using the component's project file is not possible because
--
driven_pend.gpr:7:17: shared library project "driven_pend" cannot import project "tables" that is not a shared library project
--
so I included in my project file's Source_Dirs the Components
subdirectories
- os/linux
- odbc/unixodbc/x86_64
what resulted in
--
gnat-sockets-connection_state_machine-little_endian-unsigneds.ads:28:60:
file "g-socser.ads" not found gnat-sockets-connection_state_machine-little_endian-unsigneds.ads:28:60: "GNAT.SOCKETS.CONNECTION_STATE_MACHINE.LITTLE_ENDIAN.UNSIGNEDS (body)" depends on
"GNAT.SOCKETS.CONNECTION_STATE_MACHINE.LITTLE_ENDIAN.UNSIGNEDS (spec)" gnat-sockets-connection_state_machine-little_endian-unsigneds.ads:28:60: "GNAT.SOCKETS.CONNECTION_STATE_MACHINE.LITTLE_ENDIAN.UNSIGNEDS (spec)" depends on "GNAT.SOCKETS.CONNECTION_STATE_MACHINE.LITTLE_ENDIAN (spec)" gnat-sockets-connection_state_machine-little_endian-unsigneds.ads:28:60: "GNAT.SOCKETS.CONNECTION_STATE_MACHINE.LITTLE_ENDIAN (spec)" depends on "GNAT.SOCKETS.CONNECTION_STATE_MACHINE (spec)" gnat-sockets-connection_state_machine-little_endian-unsigneds.ads:28:60: "GNAT.SOCKETS.CONNECTION_STATE_MACHINE (spec)" depends on "GNAT.SOCKETS.SERVER (spec)"
-- > Executing
find -name "g-socser.ads"
in directory Components didn't return any result.
On 2022-01-29 17:31, hreba wrote:--- snip ---
Source_Dirs. As I am trying to write a plugin, this is a library
project of kind relocatable.
Do you have your own gpr-file? The with-section and the private part of synchronization-interprocess.ads is OS-dependent. In the provided
gpr-file it is selected by the Target_OS project scenario.
The source file for Linux is in the subdirectory os/linux.
Similarly, when using ODBC, you must select the right OS driver and 32-
vs 64-bit because ODBC API depends on the choice.
The list of scenarios is here:
http://www.dmitry-kazakov.de/ada/components.htm#19
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:32:54 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,858,054 |