User forums > General (but related to Code::Blocks)
TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
patlecat:
@TDragon: I installed ur newest update on GCC4.2 (V2.7), I copied it over my working version (V1.7) but when I tried to compile anything from out of DialogBlocks, it gave me several errors. "File not found" etc. on the String.h file in wxWidgets (V2.8.4).
Reverting back to V1.7 helped and things went smooth again.
What might be the matter? And what exactly did u change, what are the effects of it? :?:
TDragon:
--- Quote from: patlecat on June 28, 2007, 04:55:13 pm ---And what exactly did u change, what are the effects of it? :?:
--- End quote ---
Apparently more that I changed had noticeable effects than I expected. :P
I'll do some comparisons, but in the meantime it would help if you could provide an example of something that doesn't work, along with the specific error messages produced.
Edit:
I haven't turned up anything that would seem to cause an error like that, so I eagerly await further details.
dwmcqueen:
Just to clarify - if I am looking for the most stable version of GCC 4.2 - which one should I grab at this point?
patlecat:
ok I reinstalled the not-working version for you. And this is the output from DialogBlock:
--- Code: -------------------------- Configuration: MinGW Release -----------------------
In directory: H:\myProjects2\MarkThyBooks
mingw32-make.exe -f makefile.gcc CONFIG=release clean all
if exist MinGWRelease\*.o del MinGWRelease\*.o
if exist MinGWRelease\*.res del MinGWRelease\*.res
if exist MinGWRelease\MarkThyBooks.exe del MinGWRelease\MarkThyBooks.exe
g++.exe -c -o MinGWRelease/markthybooksapp.o -fno-rtti -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -DUNICODE -O -Wall -I"H:/wxWidgets-2.8.4/include" -I"H:/wxWidgets-2.8.4/contrib/include" -I"H:/wxWidgets-2.8.4/lib/gcc_lib/mswu" markthybooksapp.cpp
*** In file included from H:/wxWidgets-2.8.4/include/wx/memory.h:16,
*** from H:/wxWidgets-2.8.4/include/wx/object.h:20,
*** from H:/wxWidgets-2.8.4/include/wx/wx.h:16,
*** from markthybooksapp.cpp:24:
*** H:/wxWidgets-2.8.4/include/wx/string.h:176:18: error: string: No such file or directory
*** In file included from H:/wxWidgets-2.8.4/include/wx/memory.h:16,
*** from H:/wxWidgets-2.8.4/include/wx/object.h:20,
*** from H:/wxWidgets-2.8.4/include/wx/wx.h:16,
*** from markthybooksapp.cpp:24:
*** H:/wxWidgets-2.8.4/include/wx/string.h:181: error: 'wstring' in namespace 'std' does not name a type
*** H:/wxWidgets-2.8.4/include/wx/string.h:714: error: expected ',' or '...' before '&' token
*** H:/wxWidgets-2.8.4/include/wx/string.h:714: error: ISO C++ forbids declaration of 'wxStdString' with no type
*** H:/wxWidgets-2.8.4/include/wx/string.h:714: error: 'wxString::wxString(int)' cannot be overloaded
*** H:/wxWidgets-2.8.4/include/wx/string.h:682: error: with 'wxString::wxString(int)'
*** H:/wxWidgets-2.8.4/include/wx/string.h: In constructor 'wxString::wxString(int)':
*** H:/wxWidgets-2.8.4/include/wx/string.h:715: error: 's' was not declared in this scope
*** In file included from H:/wxWidgets-2.8.4/include/wx/wx.h:21,
*** from markthybooksapp.cpp:24:
*** H:/wxWidgets-2.8.4/include/wx/hashmap.h: In member function 'wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const':
*** H:/wxWidgets-2.8.4/include/wx/hashmap.h:714: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** In file included from H:/wxWidgets-2.8.4/include/wx/event.h:18,
*** from H:/wxWidgets-2.8.4/include/wx/wx.h:25,
*** from markthybooksapp.cpp:24:
*** H:/wxWidgets-2.8.4/include/wx/clntdata.h: In member function 'wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
*** H:/wxWidgets-2.8.4/include/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** H:/wxWidgets-2.8.4/include/wx/clntdata.h: In member function 'wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
*** H:/wxWidgets-2.8.4/include/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** In file included from H:/wxWidgets-2.8.4/include/wx/event.h:21,
*** from H:/wxWidgets-2.8.4/include/wx/wx.h:25,
*** from markthybooksapp.cpp:24:
*** H:/wxWidgets-2.8.4/include/wx/gdicmn.h: In member function 'wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const':
*** H:/wxWidgets-2.8.4/include/wx/gdicmn.h:544: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** In file included from H:/wxWidgets-2.8.4/include/wx/wx.h:45,
*** from markthybooksapp.cpp:24:
*** H:/wxWidgets-2.8.4/include/wx/image.h: In member function 'wxImageHistogramBase_wxImplementation_HashTable::Node** wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned int&) const':
*** H:/wxWidgets-2.8.4/include/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** mingw32-make.exe: *** [MinGWRelease/markthybooksapp.o] Error 1
Done.
8 errors, 5 warnings
--- End code ---
TDragon:
dwmcqueen:
As far as I'm concerned, the most recent version I posted (gcc-4.2.0-tdm-2.7z) is as stable as the first. I applied no additional patches to the GCC source (or performed any other chages); the only difference between the first release and the second was some different command-line parameters during the build, to create (hopefully) faster compiler executables. So I would say you should use the second release (gcc-4.2.0-tdm-2.7z). Additionally...
patlecat:
I'm unable to reproduce the problem, and have never encountered a similar one. I recommend you check your Windows environment variables to make sure that no strange GCC-related ones are messing things up -- all you should have is "H:\MinGW\bin" (or wherever you chose to put it) in your PATH variable -- and completely clean out your MinGW directory, reinstalling from scratch. As always, install my GCC 4.2.0 package last and overwrite any duplicated files.
In case you're interested, here is the source I used to try to duplicate it:
--- Code: ---#include <wx/wx.h>
int main()
{
return 0;
}
--- End code ---
... and here is the command line:
--- Code: ---g++.exe -c -o test.o -fno-rtti -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -DUNICODE -O -Wall -I"G:\Libraries\wxMSW-2.8.4\include" -I"G:\Libraries\wxMSW-2.8.4\lib\gcc_dll\mswu" test.cpp
--- End code ---
Cheers,
John E. / TDM
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version