wxEMail compilation problem

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
paul_c_weiss
In need of some credit
In need of some credit
Posts: 3
Joined: Tue Nov 19, 2013 2:20 pm

wxEMail compilation problem

Post by paul_c_weiss »

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 is 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),
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 initailisation lines,
even if they are now modified according to evstevemd proposal.

So what could I try???
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: wxEMail compilation problem

Post by eranon »

Hello. From what I understand, wxEmail would be part of the wxCode's wxWidgets components. So, maybe the best way would be to ask in the wxCode mailing-list at http://sourceforge.net/p/wxcode/mailman/
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
Post Reply