From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!3s634R+rSk3f11Qz2WJrTw.user.46.165.242.91.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: file "synchronization-interprocess.ads" not found Date: Sat, 29 Jan 2022 20:09:35 +0100 Organization: Aioe.org NNTP Server Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="33343"; posting-host="3s634R+rSk3f11Qz2WJrTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:63420 List-Id: On 2022-01-29 17:31, hreba wrote: > 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. 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 -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de