I've been trying, but its giving me some wierd compile errors, and sometimes it gets stuck on linking tinyxml.lib. although i can get it to work fine in visual studio.
however VC++ breaks on sdk\managedthread.cpp
'__ctor' is not a member of wxThread. line21
It dosn't like the SANITY_CHECK() macro much either.
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : D:\cpp\_projects\Codeblocks\CodeBlocks_src_vc\
--------------------------------------------------------------------------------
Switching to target: sdk
...
sdk\managedthread.cpp(20) : error C2039: '__ctor': Ist kein Element von 'wxThread'
D:\wx242\include\wx\thread.h(423): Siehe Deklaration von 'wxThread'
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
I've been trying, but its giving me some wierd compile errors, and sometimes it gets stuck on linking tinyxml.lib.
although i can get it to work fine in visual studio.
....
ManagedThread::ManagedThread(bool* abortflag) :
wxThread::wxThread(wxTHREAD_JOINABLE),
m_pAbort(abortflag)
wxThread::wxThread(wxTHREAD_JOINABLE),
wxThread(wxTHREAD_JOINABLE),
cbeditor.obj : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxStyledTextCtrl::sm_eventTable" (?sm_eventTable@wxStyledTextCtrl@@1UwxEventTable@@B)
cbeditor.obj : error LNK2001: unresolved external symbol "char const * const wxSTCNameStr" (?wxSTCNameStr@@3PBDB)
editorconfigurationdlg.obj : error LNK2001: unresolved external symbol "char const * const wxSTCNameStr" (?wxSTCNameStr@@3PBDB)
cbeditor.obj : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxStyledTextCtrl::sm_classwxStyledTextCtrl" (?sm_classwxStyledTextCtrl@wxStyledTextCtrl@@2VwxClassInfo@@A)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_USERLISTSELECTION" (?wxEVT_STC_USERLISTSELECTION@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_DWELLEND" (?wxEVT_STC_DWELLEND@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_DWELLSTART" (?wxEVT_STC_DWELLSTART@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_CHARADDED" (?wxEVT_STC_CHARADDED@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_CHANGE" (?wxEVT_STC_CHANGE@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_UPDATEUI" (?wxEVT_STC_UPDATEUI@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_MARGINCLICK" (?wxEVT_STC_MARGINCLICK@@3HB)
projectmanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
projecttemplateloader.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
xtra_res.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
configmanager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
filegroupsandmasks.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
pipedprocess.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
projectbuildtarget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
cbplugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z) referenced in function "void __cdecl wxPostEvent(class wxEvtHandler *,class wxEvent &)" (?wxPostEvent@@YAXPAVwxEvtHandler@@AAVwxEvent@@@Z)
cbproject.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
compiler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z) referenced in function "public: void __thiscall RegExArray::Add(struct RegExStruct const &,unsigned int)" (?Add@RegExArray@@QAEXABURegExStruct@@I@Z)
compilerfactory.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wxAssert@@YAXHPBDH00@Z)
>but now I am getting unresolved externals.
> A bunch of unresolved externals involving wxAssert like this:
> windows.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) v
> void __cdecl wxAssert(int,char const *,int,char const *,char const *)" (__imp_?wx
Assert@@YAXHPBDH00@Z)
>as well as a bunch about wxObject new:
> wx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public
: static void * __cdecl wxObject::operator new(unsigned int,char const *,int)" (
__imp_??2wxObject@@SAPAXIPBDH@Z)
You need to rebuild everything. It looks like at lease some of your wxPython .obj files were built with hybrid settings.
class Tool
{
public:
Tool(){ menuId = -1; }
wxString name;
wxString command;
wxString params;
wxString workingDir;
int menuId;
};
------ Build started: Project: codeblocks_dll, Configuration: Release Win32 ------
Linking...
Creating library Release/codeblocks_dll.lib and object Release/codeblocks_dll.exp
cbeditor.obj : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxStyledTextCtrl::sm_eventTable" (?sm_eventTable@wxStyledTextCtrl@@1UwxEventTable@@B)
cbeditor.obj : error LNK2001: unresolved external symbol "char const * const wxSTCNameStr" (?wxSTCNameStr@@3PBDB)
editorconfigurationdlg.obj : error LNK2001: unresolved external symbol "char const * const wxSTCNameStr" (?wxSTCNameStr@@3PBDB)
editormanager.obj : error LNK2001: unresolved external symbol "char const * const wxSTCNameStr" (?wxSTCNameStr@@3PBDB)
cbeditor.obj : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxStyledTextCtrl::sm_classwxStyledTextCtrl" (?sm_classwxStyledTextCtrl@wxStyledTextCtrl@@2VwxClassInfo@@A)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_USERLISTSELECTION" (?wxEVT_STC_USERLISTSELECTION@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_DWELLEND" (?wxEVT_STC_DWELLEND@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_DWELLSTART" (?wxEVT_STC_DWELLSTART@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_CHARADDED" (?wxEVT_STC_CHARADDED@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_CHANGE" (?wxEVT_STC_CHANGE@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_UPDATEUI" (?wxEVT_STC_UPDATEUI@@3HB)
cbeditor.obj : error LNK2001: unresolved external symbol "int const wxEVT_STC_MARGINCLICK" (?wxEVT_STC_MARGINCLICK@@3HB)
Release/codeblocks_dll.dll : fatal error LNK1120: 10 unresolved externals
... Did you remember to copy the libstc.a to your mingw path, or add its directory to your linker dir?
class 'FileSetArray' needs to have dll-interface to be used by clients of class 'ProjectTemplateLoader'
class DLLIMPORT MyHtmlWin : public wxHtmlWindow
... ok i just managed to get the codeblocks.dll to build and i managed to link it with the codeblocks.exe (albiet with 600+ warnings, but working none the less)...
in the file startherepage.cpp what is this class for?Code
class DLLIMPORT MyHtmlWin : public wxHtmlWindow
I had to remove the DLLIMPORT macro for it to compile
As a final note, can you report a bug at sourceforge about the 600 warnings? Please upload a file, too. Thanks
WX_DECLARE_OBJARRAY(ConfigurationPath, Configurations);
class Configurations : protected wxArrayPtrVoid
... I modified the latest CVS ...
so MSVC wants this class to be declared as DLLEXPORT. however it seems to be working fine without it. is class Configurations ever used from OUTSIDE the dll? if it's only for internal use (IE, within the DLL) then that is probably ok.
WX_DECLARE_OBJARRAY(ConfigurationPath, Configurations)
WX_DECLARE_USER_EXPORTED_OBJARRAY(ConfigurationPath, Configurations, DLLIMPORT)
Would you mind if I went through the source code and fixed just about all the warnings that MSVC is generating? and put a few pragmas in to turn off the size_t cast warnings?
It shouldn't cause the GCC compile to break, and I can always test it and fix that.