[PD] Grid compilation errors

Hans-Christoph Steiner hans at eds.org
Thu Sep 25 21:34:07 CEST 2003


In 0.36, m_pd.h is included in m_imp.h. AFAIK, this means that m_pd.h  
is implicitly included when you include m_imp.h.

Therefore I think the best fix for this would be:

#if PD_MINOR_VERSION >= 37
#include <m_pd.h>
#endif


Also, in the devel_0_36 version in CVS, Thomas Grill has added:


/* T.Grill - avoid double inclusion of headers... */
#ifndef _M_PD_H
#define _M_PD_H

/* T.Grill - avoid double inclusion of headers... this makes devel_0_36  
m_imp.h compatible
  to 0.37... */
#ifndef _M_IMP_H
#define _M_IMP_H


So that will help as well.

.hc



On Thursday, Sep 25, 2003, at 06:00 America/New_York, Yves Degoyon  
wrote:

> hi,
>
> i doubt that you can make a version compatible with 0.36 and 0.37
> because in 0.36, the includes were :
>
> #include "m_imp.h"
> #include "g_canvas.h"
>
> and, in 0.37, it's :
>
> #include <m_pd.h>
> #include "m_imp.h"
> #include "g_canvas.h"
>
> oh and yeh, the PD_MINOR_VERSION is defined in m_pd.h of course ( haha  
> ).
>
> but, you're right on one thing, that's to replace :
>
> rtext_new(glist, (t_text *)x); ( for 0.37 )
>
> with :
>
> rtext_new(glist, (t_text *)x, glist->gl_editor->e_rtext, 0); ( for  
> 0.36 )
>
> thx for your work in cvs version anyway,
>
> cheers,
> sevy
>
> Hans-Christoph Steiner wrote:
>
>>
>> Try the version in CVS. It should support both 0.36 and 0.37.
>>
>> Here are the instructions: http://sourceforge.net/cvs/?group_id=55736
>>
>> You would:
>> cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pure-data login
>>
>> cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pure-data  
>> co externals/unauthorized
>>
>> and that will give you all of the unauthorized externals.
>>
>> .hc
>>
>> On Wednesday, Sep 24, 2003, at 21:14 America/New_York, derek at x-i.net  
>> wrote:
>>
>>> hi yves,
>>>
>>> i've got some compilation errors for Grid.
>>> using Redhat 9.0 on this box, with Planet CCRMA packages. PD 0.36.0
>>>
>>> errors below. as a side note, compiling on my Debian laptop gives an  
>>> equally
>>> long string of errors, mostly "parse error before [...]".
>>>
>>> anything that anybody can do about this? is this release of the  
>>> object already
>>> dependent on pd 0.37?
>>>
>>> thx + best,
>>> d.
>>>
>>> [root at medienturm grid]# make clean
>>> rm -f *.o *.pd_* so_locations
>>> [root at medienturm grid]# make
>>> ./tk2c.bash < grid.tk > grid.tk2c
>>> cc -DPD -DUNIX -DICECAST -O2 -funroll-loops -fomit-frame-pointer  
>>> -Wall -W
>>> -Wno-shadow -Wstrict-prototypes -Wno-unused -Wno-parentheses  
>>> -Wno-switch
>>> -I../../src -o grid.o -c grid.c
>>> In file included from ../../src/m_imp.h:8,
>>> from grid.c:16:
>>> ./../src/m_pd.h:49: redefinition of `t_int'
>>> ./../src/m_pd.h:49: `t_int' previously declared here
>>> ./../src/m_pd.h:52: redefinition of `t_float'
>>> ./../src/m_pd.h:52: `t_float' previously declared here
>>> ./../src/m_pd.h:53: redefinition of `t_floatarg'
>>> ./../src/m_pd.h:53: `t_floatarg' previously declared here
>>> ./../src/m_pd.h:56: redefinition of `struct _symbol'
>>> ./../src/m_pd.h:60: redefinition of `t_symbol'
>>> ./../src/m_pd.h:60: `t_symbol' previously declared here
>>> ./../src/m_pd.h:75: redefinition of `struct _gstub'
>>> ./../src/m_pd.h:83: redefinition of `t_gstub'
>>> ./../src/m_pd.h:83: `t_gstub' previously declared here
>>> ./../src/m_pd.h:86: redefinition of `struct _gpointer'
>>> ./../src/m_pd.h:94: redefinition of `t_gpointer'
>>> ./../src/m_pd.h:94: `t_gpointer' previously declared here
>>> ./../src/m_pd.h:97: redefinition of `union word'
>>> ./../src/m_pd.h:104: redefinition of `t_word'
>>> ./../src/m_pd.h:104: `t_word' previously declared here
>>> ./../src/m_pd.h:108: conflicting types for `A_NULL'
>>> ./../src/m_pd.h:108: previous declaration of `A_NULL'
>>> ./../src/m_pd.h:109: conflicting types for `A_FLOAT'
>>> ./../src/m_pd.h:109: previous declaration of `A_FLOAT'
>>> ./../src/m_pd.h:110: conflicting types for `A_SYMBOL'
>>> ./../src/m_pd.h:110: previous declaration of `A_SYMBOL'
>>> ./../src/m_pd.h:111: conflicting types for `A_POINTER'
>>> ./../src/m_pd.h:111: previous declaration of `A_POINTER'
>>> ./../src/m_pd.h:112: conflicting types for `A_SEMI'
>>> ./../src/m_pd.h:112: previous declaration of `A_SEMI'
>>> ./../src/m_pd.h:113: conflicting types for `A_COMMA'
>>> ./../src/m_pd.h:113: previous declaration of `A_COMMA'
>>> ./../src/m_pd.h:114: conflicting types for `A_DEFFLOAT'
>>> ./../src/m_pd.h:114: previous declaration of `A_DEFFLOAT'
>>> ./../src/m_pd.h:115: conflicting types for `A_DEFSYM'
>>> ./../src/m_pd.h:115: previous declaration of `A_DEFSYM'
>>> ./../src/m_pd.h:116: conflicting types for `A_DOLLAR'
>>> ./../src/m_pd.h:116: previous declaration of `A_DOLLAR'
>>> ./../src/m_pd.h:117: conflicting types for `A_DOLLSYM'
>>> ./../src/m_pd.h:117: previous declaration of `A_DOLLSYM'
>>> ./../src/m_pd.h:118: conflicting types for `A_GIMME'
>>> ./../src/m_pd.h:118: previous declaration of `A_GIMME'
>>> ./../src/m_pd.h:120: conflicting types for `A_CANT'
>>> ./../src/m_pd.h:120: previous declaration of `A_CANT'
>>> ./../src/m_pd.h:120: confused by earlier errors, bailing out
>>> make: *** [grid.pd_linux] Error 1
>>>
>>>
>>> _______________________________________________
>>> PD-list mailing list
>>> PD-list at iem.at
>>> http://iem.at/cgi-bin/mailman/listinfo/pd-list
>>>
>>
>> ______________________________________________________________________ 
>> __ ____
>>
>> "What is wrong is that we have invented the technology to eliminate  
>> scarcity, but we are deliberately throwing it away to benefit those  
>> who profit from scarcity."
>> -John Gilmore
>>
>>
>>
>>

________________________________________________________________________ 
____

"[W]e have invented the technology to eliminate scarcity, but we are  
deliberately throwing it away
to benefit those who profit from scarcity."
							-John Gilmore





More information about the Pd-list mailing list