User forums > Nightly builds
The 27-31 October 2007 build will NOT be out.
killerbot:
some changes coming in the nightly builds :
- will use wx286
- will use MinGW 4.2.1
- will now be build in a virtual machine [Xp in OpenSuse10.3 or OpenSuse 10.2] instead of native windows
so everyone who knows how to get rid of the new warnings we get in windows with MinGW 4.2.1 feel free to post here below on how to solve them
[hint hint : an interesting one to solve is propgrid.h]
Jenna:
The problem with "propgrid.h" are the multiline string constants taht are no loanger allowed afaik.
In gcc4.2 a warning is generated in gcc4.3 its an error and compiling breaks.
I don't find a compiler- (or preprocessor-) switch to change this behaviour.
So the only (and of course the clean way) is to patch "propgrid.h" and turn the linebraks in the string to "\n", or to upgrade wxpropgrid, what would lead to other (more difficult) problems with wxSmith-code, if I remember a post from byo right.
In the actual version of "propgrid.h" the first lines that lead to this warning look as followed:
--- Code: --- "Registers Python type/class to property mapping.\n\nfactory: Property builder function/class."
--- End code ---
instead of
--- Code: --- """\
Registers Python type/class to property mapping.
factory: Property builder function/class.
"""
--- End code ---
By the way which version of MinGW 4.2.1 is to be used ?
Jenna:
I've created a patch for "propgrid.h" and "manager.h" : http://jens.lody.name/debian/patches/propgrid.patch
The annoying warnings about deprecated string-conversions can be stopped with the flag "-Wwrite-strings" .
TDragon:
For the wxWidgets headers, you'll have to add -Wno-attributes to the compile-time options until it's fixed upstream.
For the "deprecated conversion from string constant to..." errors, you can either add "-Wno-write-strings" to the compile-time options or fix the warning by making functions accept char const* (or the equivalent const char*) instead of just char*. The vast majority of these errors turned up in non-C::B-original code, so my patch uses -Wno-write-strings for those and fixes the single instance in C::B-original code (Append() in AutoBuffer in filemanager.h).
For the fun stuff in wxPropertyGrid, it appears that the preprocessor no longer entirely skips code within conditionals that evaluate to false; it's at least trying to tokenize the Python code and failing. Only fix is to remove the offending bits; I chose to just get rid of the entire SWIG section, since we don't use it.
In Editor.cxx and ScintillaBase.cxx from Scintilla, the fix is to add another set of curly brackets "{}" for correctness around all the zero initializers.
The attached patch is against r4566; it successfully compiles (with no errors or warnings) and runs with both GCC 3.4.5 and 4.2.1-dw2-2.
EDIT:
I also spotted another no-no in AutoBuffer in filemanager.h: using a std::auto_ptr to bind an array (see here and here). It happens to work for now in GCC using simple objects, but it is undefined in ISO-C++ (the array is freed with delete instead of delete[]).
[attachment deleted by admin]
killerbot:
--- Quote ---For the wxWidgets headers, you'll have to add -Wno-attributes to the compile-time options until it's fixed upstream.
--- End quote ---
This had already been done, every windows cbp of CB includes a project build script.
--- Quote ---warnings about deprecated string-conversion
--- End quote ---
I think we should solve those correctly and not suppress, assuming this would become errors in GCC4.3.
My builds will be dw2 based.
Navigation
[0] Message Index
[#] Next page
Go to full version