comp.lang.ada
 help / color / mirror / Atom feed
* Very basic question: How to use gnatmake (not gprbuild) using external libraries?
@ 2023-06-27 23:44 Kenneth Wolcott
  2023-06-28  7:20 ` Jeffrey R.Carter
  0 siblings, 1 reply; 5+ messages in thread
From: Kenneth Wolcott @ 2023-06-27 23:44 UTC (permalink / raw)


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 Wright...

  I see many of these Rsoetta Code examples refer to external libraries (SDL, XML, GTK, etc).  I have found most under ALIRE.  I have found most of them 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 referencing 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-28 19:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-27 23:44 Very basic question: How to use gnatmake (not gprbuild) using external libraries? Kenneth Wolcott
2023-06-28  7:20 ` Jeffrey R.Carter
2023-06-28 18:25   ` Kenneth Wolcott
2023-06-28 19:02     ` Jeffrey R.Carter
2023-06-28 19:34       ` Kenneth Wolcott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox