guenter geiger wrote:
[...] The solution of Lex doesn't work because of the same reason externals won't fully work. Adding an alias is not enough, you have to change the name of every method that could be in conflict with other methods of different externals. Otherwise you will have some surprises while using two objects with the same name. (and this could be very tricky to debug)
and Frank Barknecht wrote:
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
Declaring a function static gives it file scope, so it is only known to functions in the same file. That might solve the 'shadowed declarations' error that occurs because two entities named 'exp' are found in the source.
Might indeed help, too, although renaming was easier. The static thing won't help with the clashes of *_setup functions, though, as these need to be visible to the Pd main app, so I think, they must not be "static". Am I right?
So the above mentioned method (that already _is_ used in maxlib) should work, right? - The setup functions also have the prefix ',axlib_' and thus are different from for example 'scale_setup()' and all functions are declared static...
Olaf