Dear all,
just some remarks on building new parser on OSX
1. OSX has bison and flex, but these seem to be quite old versions
and bison can't cope with the syntax file for Csound.
2. So we have to get updated sources and build
bison, flex and GNU m4. This is easy, download, configure, make, make install.
3. Bison calls /usr/bin/gm4 (GNU m4), which is also old and will not work. What
we need to do is to
sudo mv /usr/bin/gm4 /usr/bin/gm4-old
sudo ln -s /usr/local/bin/m4 /usr/bin/gm4
4. Csound will not link to the modules produced by flex with default options.
So I needed to add the linker option -single_module (-Wl,-single_module)
to SConstruct (now in CVS). This is to do with the global variables in
the parser code, which are not allowed in -multi_module.
Now it builds and runs.
However, I am slightly concerned with the globals generated by flex. Will that
affect the capability of running multiple instances of csound?
Regards
Victor