maybe some of you can help me. I try to get wxWidgets work with code::blocks or the other way around. Now I have some problems compiling a minimal code.
First some facts:
Code::Blocks Studio 1 RC2
wxWidgets 2.6.3 compiled as monolithic, unicode using msys and configure
MinGW
I think the main problem is setting up the build-options. At the moment I set up the following:
Under build options:
other options:
Code: Select all
-mthreads
-Wundef
-wno-ctor-dtor-privacy
-fno-strict-aliasing
Code: Select all
__GNUWIN32__
__WXMSW__
WXUSINGDLL
wxUSE_UNICODE
USE_PCH
Code: Select all
wxmsw26u
mwindows
Code: Select all
-mthreads -Wl -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32
Code: Select all
C:\wxWidgets-2.6.3\include
C:\wxWidgets-2.6.3\contrib\include
C:\wxWidgets-2.6.3\include\wx\msw
C:\wxWidgets-2.6.3\lib\wx\include\msw-unicode-release-2.6
Code: Select all
C:\wxWidgets-2.6.3\lib
Code: Select all
C:\wxWidgets-2.6.3\include
The compiler output trying to compile the file is:
Code: Select all
Project : wxWidgets application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Dokumente und Einstellungen\mw\Eigene Dateien\Code--Projekts\QStepLauncher\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.cpp
In file included from C:/MinGW/include/windows.h:75,
from C:/wxWidgets-2.6.3/include/wx/msw/wrapwin.h:51,
from C:/wxWidgets-2.6.3/include/wx/msw/private.h:17,
from C:/wxWidgets-2.6.3/include/wx/filefn.h:173,
from C:/wxWidgets-2.6.3/include/wx/utils.h:32,
from C:/wxWidgets-2.6.3/include/wx/cursor.h:37,
from C:/wxWidgets-2.6.3/include/wx/event.h:32,
from C:/wxWidgets-2.6.3/include/wx/wx.h:23,
from main.h:11,
from main.cpp:1:
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:104: `wxDDEConnectionList' declared as
an `inline' field
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:104: parse error before `&' token
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:109: semicolon missing after
declaration of `wxDDEServer'
C:/wxWidgets-2.6.3/include/wx/msw/dde.h: In member function `wxString&
wxDDEServer::GetServiceName() const':
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:103: `m_serviceName' undeclared (first
use this function)
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:103: (Each undeclared identifier is
reported only once for each function it appears in.)
C:/wxWidgets-2.6.3/include/wx/msw/dde.h: At global scope:
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:109: parse error before `:' token
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:111: `wxString m_serviceName' used
prior to declaration
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:112: 'wxDDEConnectionList' is used as a
type, but is not defined as a type.
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:113: parse error before `}' token
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:134: `wxDDEConnectionList' declared as
an `inline' field
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:134: parse error before `&' token
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:139: semicolon missing after
declaration of `wxDDEClient'
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:141: 'wxDDEConnectionList' is used as a
type, but is not defined as a type.
C:/wxWidgets-2.6.3/include/wx/msw/dde.h:142: parse error before `}' token
main.cpp: In constructor `MyFrame::MyFrame(wxFrame*, const wxString&)':
main.cpp:24: call of overloaded `wxMenu(const char[1])' is ambiguous
C:/wxWidgets-2.6.3/include/wx/msw/menu.h:122: candidates are:
wxMenu::wxMenu(const wxMenu&) <near match>
C:/wxWidgets-2.6.3/include/wx/msw/menu.h:59:
wxMenu::wxMenu(long int = 0) <near match>
C:/wxWidgets-2.6.3/include/wx/msw/menu.h:57:
wxMenu::wxMenu(const wxString&, long int = 0) <near match>
main.cpp:28: call of overloaded `wxMenu(const char[1])' is ambiguous
C:/wxWidgets-2.6.3/include/wx/msw/menu.h:122: candidates are:
wxMenu::wxMenu(const wxMenu&) <near match>
C:/wxWidgets-2.6.3/include/wx/msw/menu.h:59:
wxMenu::wxMenu(long int = 0) <near match>
C:/wxWidgets-2.6.3/include/wx/msw/menu.h:57:
wxMenu::wxMenu(const wxString&, long int = 0) <near match>
mingw32-g++.exe: unrecognized option `-wno-ctor-dtor-privacy'
Process terminated with status 1 (0 minutes, 8 seconds)
22 errors, 0 warnings
Thanks for all help!
so far
CrazyK