In message <[email protected]> Jan-Jaap van der Geer <[email protected]> wrote:
> As Vala likes to generate a _main function when compiling a vala > program to a c program, this is a bit impractical. Is there an easy > workaround? > > I tried checking the Vala compiler, but it was not immediately > obvious how this name got generated. It might be feasable to go > that way, but I'd like to find out if there is an alternative > solution. _main is what we have in UnixLib wrapping the user supplied main() and not as is replaceble. As far as I remember, all identifiers starting with an underscore are reserved for user code so a bit questionable that Vala uses this. I don't have a workaround other than patch the Vala sources to use something else, at least something reasonably unique to Vala like e.g. _vala_main(). John. -- John Tytgat, in his comfy chair at home BASS [email protected] ARM powered, RISC OS driven _______________________________________________ GCCSDK mailing list [email protected] Bugzilla: http://www.riscos.info/bugzilla/index.cgi List Info: http://www.riscos.info/mailman/listinfo/gcc Main Page: http://www.riscos.info/index.php/GCCSDK
