Thursday August 26, 2004 |
Yesterday, a build error reported against mozilla/modules/libpref/src/nsPrefBranch.cpp, it was nsPrefBranch.cpp:88: error: brace-enclosed initializer used to initialize `const char*' It used to work fine for months with gcc 3.2.2, but apparently gcc 3.3.3 changed the rule. (I wonder why the Ireland team changed their kernel & compiler without notifying us.) It's not difficult to find the gcc-3.3.3 source tarball from one of their mirror sites. The build procedure is pretty straight forward:
Everything will be built up and installed in your $HOME/local/bin, setting
BTW, the error was: static const char* gSystemPrefKeys[] = {
{"network.proxy.http"},
{"network.proxy.http_port"},
...
Removing the {} around the strings fixed it. I don't understand why all other compilers (VC, gcc 3.2.2, Forte) are happy with that but gcc 3.3.3 doesn't. August 26, 2004 03:08 AM PDT PermalinkPost a Comment: Comments are closed for this entry. |
Calendar
Links
NavigationReferersToday's Page Hits: 3 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
