[PD-dev] Accessing canvas_list without including g_canvas.h

Hans-Christoph Steiner hans at eds.org
Fri May 4 17:13:44 CEST 2007


On May 4, 2007, at 7:37 AM, Jamie Bullock wrote:

> On Thu, 2007-05-03 at 18:12 -0400, Hans-Christoph Steiner wrote:
>> Lots of externals use g_canvas.h, so it would not be such a big
>> deal.  The whole public/private header thing in Pd is not very well
>> defined.
>>
>
> I don't really have a problem with using g_canvas.h per se, it's  
> more of
> a question of build requirements. m_pd.h usually tends to get  
> installed
> to /usr/local/include or /usr/include when installing from source or
> some distro packaged version. However, if I use g_*.h headers, I  
> have to
> either include them with my sources, or ask the user to add the
> necessary include path to the build scripts. Neither of these are very
> clean IMO.
>
> Jamie


Yeah, it's not so clean.  Most Makefiles deal with this by having a  
PDPATH variable that points to the whole source.

.hc

------------------------------------------------------------------------ 
----

As we enjoy great advantages from inventions of others, we should be  
glad of an opportunity to serve others by any invention of ours; and  
this we should do freely and generously.         - Benjamin Franklin






More information about the Pd-dev mailing list