Hello! I have downloaded wxEMail-1.0-Beta-2, and I have some difficulties compiling it.
I am working on a Windows 7 system, with mingw version gcc 4.7.1. My version of wxWidget is 2.8.12. I am compiling with the following command: mingw32-make -f makefile.gcc WX_DIR=D:\wxW WX_UNICODE=1 WX_DEBUG=0 WX_SHARED=1 WX_MONOLITHIC=0 Now, I am facing error in the wxPOP3 class. These errors ate linked to static initialisation. Here are the compilation messages: STARTING ERROR MESSAGES ../src/pop3/wxpop3.cpp:28:1: warning: 'wxPOP3::wxPOP3(wxString, wxString, wxString, long unsigned int, wxPOP3::AuthenticationScheme_t, bool, wxPOP3::Listener*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] In file included from ../src/pop3/wxpop3.cpp:24:0: ..\include/wx/pop3/wxpop3.h: In constructor 'wxPOP3::wxPOP3(wxString, wxString, wxString, long unsigned int, wxPOP3::AuthenticationScheme_t, bool, wxPOP3::Listener*)': ..\include/wx/pop3/wxpop3.h:589:12: warning: 'wxPOP3::in_init' will be initialized after [-Wreorder] ..\include/wx/pop3/wxpop3.h:562:12: warning: 'bool wxPOP3::ssl_enabled' [-Wreorder] ../src/pop3/wxpop3.cpp:28:1: warning: when initialized here [-Wreorder] ../src/pop3/wxpop3.cpp: At global scope: ../src/pop3/wxpop3.cpp:56:6: warning: 'void wxPOP3::ConfigureAuthenticationScheme(wxPOP3::AuthenticationScheme_t, const wxString&, const wxString&, bool)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:67:6: warning: 'bool wxPOP3::OperationInProgress()' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:72:6: warning: 'bool wxPOP3::CheckConnection(wxPOP3::Listener*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:77:6: warning: 'bool wxPOP3::DownloadMessages(wxPOP3::Listener*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:82:6: warning: 'bool wxPOP3::PerformOperation(int, wxPOP3::Listener*)' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default] ../src/pop3/wxpop3.cpp:109:40: warning: 'wxPOP3::initial_state' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default] ../src/pop3/wxpop3.cpp:110:40: warning: 'wxPOP3::ssl_negociation_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:111:40: warning: 'wxPOP3::hello_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:112:40: warning: 'wxPOP3::authorisation_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:113:40: warning: 'wxPOP3::get_message_list_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:114:40: warning: 'wxPOP3::handling_message_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:115:40: warning: 'wxPOP3::downloading_message_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:116:40: warning: 'wxPOP3::suppressing_message_state' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] ../src/pop3/wxpop3.cpp:117:40: warning: 'wxPOP3::exit_state' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default] ../src/pop3/wxpop3.cpp:121:40: warning: 'wxPOP3::default_class_listener' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default] ../src/pop3/wxpop3.cpp: In function 'void __tcf_2()': ../src/pop3/wxpop3.cpp:110:32: error: definition of static data member 'wxPOP3::ssl_negociation_state' of dllimport'd class ../src/pop3/wxpop3.cpp: In function 'void __tcf_3()': ../src/pop3/wxpop3.cpp:111:32: error: definition of static data member 'wxPOP3::hello_state' of dllimport'd class ../src/pop3/wxpop3.cpp: In function 'void __tcf_4()': ../src/pop3/wxpop3.cpp:112:32: error: definition of static data member 'wxPOP3::authorisation_state' of dllimport'd class ../src/pop3/wxpop3.cpp: In function 'void __tcf_5()': ../src/pop3/wxpop3.cpp:113:32: error: definition of static data member 'wxPOP3::get_message_list_state' of dllimport'd class ../src/pop3/wxpop3.cpp: In function 'void __tcf_6()': ../src/pop3/wxpop3.cpp:114:32: error: definition of static data member 'wxPOP3::handling_message_state' of dllimport'd class ../src/pop3/wxpop3.cpp: In function 'void __tcf_7()': ../src/pop3/wxpop3.cpp:115:32: error: definition of static data member 'wxPOP3::downloading_message_state' of dllimport'd class ../src/pop3/wxpop3.cpp: In function 'void __tcf_8()': ../src/pop3/wxpop3.cpp:116:32: error: definition of static data member 'wxPOP3::suppressing_message_state' of dllimport'd class mingw32-make: *** [gccmswu\wxEMail_lib_wxpop3.o] Error 1 END OF ERROR MESSAGES Note that I have tested the trick proposed in a post by evstevemd (Sun Feb 12, 2012 9:20 pm) on the wxWidgets discussion Forum, to no avail Also, commenting off the offensing lines allows compiling wxPOP3 (presumably in an incorrect way), but then the compiling stops in wxsmtp.cpp, once again on the static initialisation lines, even if they are now modified according to evstevemd proposal. So what could I try??? ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users