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-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:8787:0:b0:75b:3962:8dc6 with SMTP id j129-20020a378787000000b0075b39628dc6mr3277777qkd.1.1687909448095; Tue, 27 Jun 2023 16:44:08 -0700 (PDT) X-Received: by 2002:a05:6808:30a4:b0:3a1:f295:3e with SMTP id bl36-20020a05680830a400b003a1f295003emr360644oib.1.1687909447805; Tue, 27 Jun 2023 16:44:07 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Jun 2023 16:44:07 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <021a84aa-a34d-4e19-bc14-8643532f001fn@googlegroups.com> Subject: Very basic question: How to use gnatmake (not gprbuild) using external libraries? From: Kenneth Wolcott Injection-Date: Tue, 27 Jun 2023 23:44:08 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65359 List-Id: Hi; Very basic question here. I have downloaded several examples of Ada code from the Rosetta Code web = site. Some very interesting stuff! I'm on a Mac with an M1 chip using the gnat 13.1 compiler from Simon Wrig= ht... I see many of these Rsoetta Code examples refer to external libraries (SD= L, XML, GTK, etc). I have found most under ALIRE. I have found most of th= em in GitHub (etc). I'm not using ALR much yet because I can't seem to successfully get full = crates because I'm using an external gnat compiler (I'm on a Mac with a M1 = chip) and it seems to only like crates bundled with the compiler on ALR :-(= That is a question for a different post... So, my questions are: 1. Where do I place the SDL library from GitHub? 2. Do I compile/install the package? 3. When using gnatmake do I use -I to specify where the library I'm refer= encing is found? 4. Once #3 is answered, I assume that I "with package" as if the '*.ad[sb= ]' files were co-located with my Ada program, is that correct? Thanks, Ken Wolcott