From: <ni...@in...> - 2001-04-14 12:14:36
|
I wrote: > The one in user_strings.h is necessary for some compilers which > report the "extern user_string_def" declarations as an error. > (which it definately is - a structure name is being used as a type) > > The version.h one is to allow multiple files to include it. > I need this in the MacOS port, where main_MacOXS.m writes a > version number to stdout on program loading, and the "About" > window also needs a version number. > Gwenole Beauchesne responded: > A structure name is a type name in C++. No need for typedef. > > In C++, a constant with no extra specificiers has file scope, by default. Oops. In all this time, I had never realised these two slight differences between C & C++. I have workarounds in my source code for these, so it is no problem. ... > Therefore, if you need the "static" specifier for Objective-C++, we can't > add it but it's not necessary. Mac OS X's development classes come in either Objective-C or Java versions. There is no Objective C++ compiler yet. ... > Nigel, I forgot to report it to you. The binary you sent me would not want > to save the prefs and therefore, when I try to run the emulator, I get an > error about the ROM that could not be found. Sadly, there are a few unimplemented parts in the code (CD-ROM, EtherNet, floppy, and some of the preferences). As a workaround, use a text editor to modify the fields in the newly created .basilisk_ii_prefs file in your home directory. That should get you going. -- | Nigel Pearson, ni...@in... | "Reality is that which, | | Telstra NW-D, Sydney, Australia. | when you stop believing | | Office: 9206 3468 Fax: 9212 6329 | in it, doesn't go away." | | Mobile: 0408 664435 Home: 9792 6998 | Philip K. Dick - 'Valis.' | |