<div dir="ltr">Hey thanks for that, I was aware I was cargo-culting there haha, so the explanation is much appreciated. :-)<div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 28, 2020 at 9:29 AM IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</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">On 10/28/20 12:09 AM, Iain Duncan wrote:<br>
> cflags = -I . -L . -l s7<br>
<br>
if this works, then it's only because you somehow managed to have a <br>
libs7.so (or libs7.a) file lying around, against which it linked.<br>
<br>
afaict, this is not a safe assumption<br>
<br>
gdfmasdr<br>
IOhannes<br>
<br>
and some more nitpicking:<br>
<br>
i think it's better style to omit the spaces after the -I/-L/-l flags:<br>
cflags = -I. -L. -ls7<br>
<br>
also the "-I." is only useful if you happen to use includes with <br>
angled-brackets (e.g. '#include <s7.h>') as opposed to includes with <br>
quotes (e.g. '#include "s7.h"').<br>
if you want to include the local header file anyhow (rather than some <br>
system-installed header of the same name) you should use <br>
includes-with-quotes rather than add '-I' to the cflags.<br>
<br>
and "-L" and "-l" are really linker flags.<br>
you should *not* add them to cflags.<br>
instead of "ldlibs" resp. "ldflags".<br>
<br>
<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div>