GnuWin32 provides Win32 (MS Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista) ports of tools with a GNU or similar open source license.
But I do have GCC 4.1.2 running wonderfully on my WinXP machine now, without a hitch.I thought I'd mention that you'll find a build of GCC 4.1.2 linked in my signature that does include a couple of patches and modifications (unlike WinPorts), which fix certain issues with the vanilla sources. For instance, if you ever want to build wxWidgets with GCC 4.1.2, you'll need a patched version.
I thought I'd mention that you'll find a build of GCC 4.1.2 linked in my signature that does include a couple of patches and modifications (unlike WinPorts), which fix certain issues with the vanilla sources. For instance, if you ever want to build wxWidgets with GCC 4.1.2, you'll need a patched version.
Cheers,
JohnE / TDM
#ifdef WX_PRECOMP //
#include "wx_pch.h"
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#include "testWXApp.h"
//(*AppHeaders
#include "testWXMain.h"
#include <wx/image.h>
//*)
IMPLEMENT_APP(testWXApp);
bool testWXApp::OnInit()
{
//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
testWXFrame* Frame = new testWXFrame(NULL);
Frame->Show();
SetTopWindow(Frame);
}
//*)
return wxsOK;
}
I was able to download both the binary and source packages from filefront just now, so I'm not sure where the problem is. However, I believe you can also download the binary package at http://farfetch.intrepid.cx/gcc-4.1.2-i386-pc-mingw32.7z (http://farfetch.intrepid.cx/gcc-4.1.2-i386-pc-mingw32.7z), and the source package at http://farfetch.intrepid.cx/gcc-4.1.2-i386-pc-mingw-src.7z (http://farfetch.intrepid.cx/gcc-4.1.2-i386-pc-mingw-src.7z). (Warning: That server may not return the proper mime headers; if you get a page of gibberish, try right-clicking the link and selecting Save As.)
As far as your error goes, it's addressed in the readme file in my source package, but I'll give a quick synopsis: open gcc/gcc/Makefile, find the definition of ORIGINAL_LD_FOR_TARGET, and change it to match ORIGINAL_NM_FOR_TARGET which is near it (except use "ld" instead of "nm").
I decided try gcc 4.1.2 under Windows. I downloaded install package from http://www.develer.com/oss/GccWinBinaries. I compiled
wxWidgets 2.8.3 and hadn't got any problems. But when i try to compile test wxWidgets application, i get a few errors in wxWidgets header files, not in my sources. There is test application, which created by wxWidgets wizard:Code#ifdef WX_PRECOMP //
#include "wx_pch.h"
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#include "testWXApp.h"
//(*AppHeaders
#include "testWXMain.h"
#include <wx/image.h>
//*)
IMPLEMENT_APP(testWXApp);
bool testWXApp::OnInit()
{
//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
testWXFrame* Frame = new testWXFrame(NULL);
Frame->Show();
SetTopWindow(Frame);
}
//*)
return wxsOK;
}
There are an errors:
E:\libs\wxWidgets-2.8.3\include\wx\buffer.h:114: error: 'strdup' was not declared in this scope
E:\libs\wxWidgets-2.8.3\include\wx\buffer.h:114: error: 'strdup' was not declared in this scope
E:\libs\wxWidgets-2.8.3\include\wx\buffer.h:118: error: '_wcsdup' was not declared in this scope
E:\libs\wxWidgets-2.8.3\include\wx\buffer.h:118: error: '_wcsdup' was not declared in this scope
E:\libs\wxWidgets-2.8.3\include\wx\string.h:58: warning: type attributes are honored only at type definition
E:\libs\wxWidgets-2.8.3\include\wx\string.h:141: error: 'strcasecmp' was not declared in this scope
:: === Build finished: 7 errors, 203 warnings ===
My system is MS Windows SP2, CodeBlocks SVN revision 3879.
P.S. CodeBlocks with wxWidgets 2.6.3 compiled without any problems.
P.P.S. Sorry for my English))