I think this is only a problem on Leopard, but q3cpp on my Mac uses the libc getopt instead of the one in tools/lcc/cpp/getopt.c
Of course, they don't do *quite* the same thing, so as a result passing any arguments to it results in either sheer insanity or a plain bus error.
Renaming the getopt function to Q_getopt seems to resolve the issue and I can now compile QVMs fine. It's not easy for me to make sure they *work*, but all signs point to yes.
Created attachment 1734[details]
getopt ->Q_getopt
This patch renames all three occurrences of the offending call. I don't know if the new name is stylistically right, but it doesn't really matter since all the q3cpp code seems to be a huge mess anyway :|
Created attachment 1734 [details] getopt ->Q_getopt This patch renames all three occurrences of the offending call. I don't know if the new name is stylistically right, but it doesn't really matter since all the q3cpp code seems to be a huge mess anyway :|