User forums > General (but related to Code::Blocks)
WinPorts - MinGW compatible builds
alifehpp:
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;
}
--- End code ---
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))
islet8:
thanks very much for your help :) but there still be some unknow error while making install, and i have to solve it as soon as possible because of my work tasks, so i downloaded your distribution. thank you again for your help and your files, i'll compile the gcc 4.1.2 again later
--- Quote from: TDragon on April 22, 2007, 03:38:25 pm ---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, and the source package at 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").
--- End quote ---
MaxHeadroom:
To anyone who runs into this problem, you have to turn off the gcc -ansi flag.
Cheers,
Max
--- Quote from: alifehpp on April 23, 2007, 09:35:32 am ---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;
}
--- End code ---
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))
--- End quote ---
Navigation
[0] Message Index
[*] Previous page
Go to full version