<div dir="ltr"><div>For demos application directory is good option. For real projects, things should be installed as root to the /usr/lib. For demos consisting of multiple projects, I guess ~/SharedDemoLibrary or similar would be good. I don't think there is standard to follow for that case.<br></div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 27, 2019 at 12:06 AM Cedron Dawg <<a href="mailto:cedron@exede.net">cedron@exede.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Jussi, I'm glad you like it.<br>
<br>
The RunSh.module has been evolving a bit so the version in the FFTW example is not quite as good as the one I attached.  If you would kindly incorporate your suggestions and attach it to the response, I will use it going forward and others can have it right away.  I was a bit lazy with it and if the .so doesn't exist it will be quietly compiled without a message saying it is being compiled.<br>
<br>
The other problem is the .so is in the application directory and I still haven't figured out the best way to include it with other projects.  I.e. should you just copy the .so file into the new project, should you copy it to /usr/lib or /usr/local/lib or some other alternative?  Suggestions welcome.<br>
<br>
Ced<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Jussi Lahtinen" <<a href="mailto:jussi.lahtinen@gmail.com" target="_blank">jussi.lahtinen@gmail.com</a>><br>
<br>
That is good way to share C library code. However, little thing. <br>
Instead of giving error messages like "MaybeCompileLibrary: compile.sh not found.", give them like this: <br>
"MaybeCompileLibrary: " & theShSpec & " not found." <br>
<br>
That way the user knows what exactly could not be found and from where. Or in case of open source program, even like this: <br>
System.Backtrace[0] & ": " & theShSpec & " not found." <br>
<br>
This way the user knows immediately the line in the source code what gives the error. <br>
<br>
<br>
Jussi <br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>