hi there, i´m trying to compile pd-0.37-1 on gentoo linux and it fails at the file extra/expr~/vexp_if.c i´m getting the following compiler error: vexp_if.c:47: warning: declaration of `exp' shadows a global declaration <built-in>:0: warning: shadowed declaration is here my gcc version is 3.3.2 what seems to happen here is that gcc takes exp as a reserved word, probably from math.h. which is kind of strange since math.h doesn´t get included at all here. i could be totally off with my guess, too, though... does anyone know what versions of gcc are not affected by this? or if this is a bug in gcc or if gcc will handle things like that this way from now on?
any insight in this would be greatly appriciated,
alexander
Hallo, alexander hat gesagt: // alexander wrote:
i?m trying to compile pd-0.37-1 on gentoo linux and it fails at the file extra/expr~/vexp_if.c i?m getting the following compiler error: vexp_if.c:47: warning: declaration of `exp' shadows a global declaration <built-in>:0: warning: shadowed declaration is here my gcc version is 3.3.2
See the pd-dev list archives for a patch fixing this which I posted several times. Archives are here: http://iem.at/mailinglists/pd-list/
Frank Barknecht _ ______footils.org__
On Tue, Jul 20, 2004 at 10:01:35AM +0200, alexander wrote:
hi there, i´m trying to compile pd-0.37-1 on gentoo linux and it fails at the file extra/expr~/vexp_if.c
hi, i solved it reading this post: http://iem.kug.ac.at/mailinglists/pd-list/2004-02/020151.html
-- Lazzaro
Lazzaro N. Ciccolella wrote:
On Tue, Jul 20, 2004 at 10:01:35AM +0200, alexander wrote:
hi there, i´m trying to compile pd-0.37-1 on gentoo linux and it fails at the file extra/expr~/vexp_if.c
hi, i solved it reading this post: http://iem.kug.ac.at/mailinglists/pd-list/2004-02/020151.html
... where it says:
or you can edit vexp.c & vexp_if.c and change every instance of "exp-" to "exp2-", "exp)" to "exp2)" and "exp," to "exp2,". The latter is what I do, because one day you may need that -Werror flag.
... I am just wondering why nobody has done this to the source yet.
Martin
i definetely think the best would be to change every instance of "exp", too. but for those who want to go the easy route i´d like to correct that previous post. the flag in the makefile that gives the error is not -Werror but -Wshadow. so that one has to go. at least it´s this way for gcc 3.3.4
regards, alexander
Martin Peach wrote:
Lazzaro N. Ciccolella wrote:
On Tue, Jul 20, 2004 at 10:01:35AM +0200, alexander wrote:
hi there, i´m trying to compile pd-0.37-1 on gentoo linux and it fails at the file extra/expr~/vexp_if.c
hi, i solved it reading this post: http://iem.kug.ac.at/mailinglists/pd-list/2004-02/020151.html
... where it says:
or you can edit vexp.c & vexp_if.c and change every instance of "exp-" to "exp2-", "exp)" to "exp2)" and "exp," to "exp2,". The latter is what I do, because one day you may need that -Werror flag.
... I am just wondering why nobody has done this to the source yet.
Martin
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-lis t
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
or you can edit vexp.c & vexp_if.c and change every instance of "exp-" to "exp2-", "exp)" to "exp2)" and "exp," to "exp2,". The latter is what I do, because one day you may need that -Werror flag.
... I am just wondering why nobody has done this to the source yet.
I posted the patch which does this several times (I think, two times) here or on pd-dev. I attached it again. It uses "expression" as variable, as I still think "exp2" is misleading.
Frank Barknecht _ ______footils.org__