logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWNX4 Character compilation problem

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Nemrod_Haven



Joined: 27 Oct 2007
Posts: 5

PostPosted: Sat Oct 27, 2007 0:38    Post subject: NWNX4 Character compilation problem Reply with quote

Trying to recompile the Character Plugin, getting the following errors :

------ Rebuild All started: Project: XP Character, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'XP Character', configuration 'Debug|Win32'
Compiling...
character.cpp
c:\nwnx4\src\plugins\character\character.cpp(108) : error C2664: 'wxString::wxString(int)' : cannot convert parameter 1 from 'PCHAR' to 'int'
There is no context in which this conversion is possible
c:\nwnx4\src\plugins\character\character.cpp(112) : error C2440: '<function-style-cast>' : cannot convert from 'const char *' to 'wxString'
No constructor could take the source type, or constructor overload resolution was ambiguous
c:\nwnx4\src\plugins\character\character.cpp(196) : error C2664: 'Plugin::ProcessQueryFunction' : cannot convert parameter 1 from 'const wxChar *' to 'std::string'
No constructor could take the source type, or constructor overload resolution was ambiguous
c:\nwnx4\src\plugins\character\character.cpp(231) : error C2664: 'StringCbCopyW' : cannot convert parameter 1 from 'CHAR [2000]' to 'STRSAFE_LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(232) : error C2664: 'StringCbCatW' : cannot convert parameter 1 from 'CHAR [2000]' to 'STRSAFE_LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(233) : error C2664: 'StringCbCatW' : cannot convert parameter 1 from 'CHAR [2000]' to 'STRSAFE_LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(234) : error C2664: 'StringCbCatW' : cannot convert parameter 1 from 'CHAR [2000]' to 'STRSAFE_LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(237) : error C2664: 'wxLogMessage' : cannot convert parameter 1 from 'const char [24]' to 'const wxChar *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(250) : error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'CHAR [2000]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(251) : error C2664: 'wxLogMessage' : cannot convert parameter 1 from 'const char [30]' to 'const wxChar *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(274) : error C2664: 'DeleteFileW' : cannot convert parameter 1 from 'PCHAR' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(274) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const char [11]' (or there is no acceptable conversion)
d:\wxwidgets-2.8.6\include\wx\string.h(676): could be 'wxString &wxString::operator =(int)'
d:\wxwidgets-2.8.6\include\wx\string.h(899): or 'wxString &wxString::operator =(const wxStringBase &)'
d:\wxwidgets-2.8.6\include\wx\string.h(902): or 'wxString &wxString::operator =(wxChar)'
d:\wxwidgets-2.8.6\include\wx\string.h(910): or 'wxString &wxString::operator =(const wxChar *)'
d:\wxwidgets-2.8.6\include\wx\string.h(916): or 'wxString &wxString::operator =(const wxWCharBuffer &)'
d:\wxwidgets-2.8.6\include\wx\string.h(1361): or 'wxString &wxString::operator =(const wxString &)'
while trying to match the argument list '(wxString, const char [11])'
c:\nwnx4\src\plugins\character\character.cpp(275) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const char [7]' (or there is no acceptable conversion)
d:\wxwidgets-2.8.6\include\wx\string.h(676): could be 'wxString &wxString::operator =(int)'
d:\wxwidgets-2.8.6\include\wx\string.h(899): or 'wxString &wxString::operator =(const wxStringBase &)'
d:\wxwidgets-2.8.6\include\wx\string.h(902): or 'wxString &wxString::operator =(wxChar)'
d:\wxwidgets-2.8.6\include\wx\string.h(910): or 'wxString &wxString::operator =(const wxChar *)'
d:\wxwidgets-2.8.6\include\wx\string.h(916): or 'wxString &wxString::operator =(const wxWCharBuffer &)'
d:\wxwidgets-2.8.6\include\wx\string.h(1361): or 'wxString &wxString::operator =(const wxString &)'
while trying to match the argument list '(wxString, const char [7])'
c:\nwnx4\src\plugins\character\character.cpp(278) : error C2664: 'wxLogMessage' : cannot convert parameter 1 from 'const char [27]' to 'const wxChar *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(294) : error C2664: 'wxFindFirstFile' : cannot convert parameter 1 from 'PCHAR' to 'const wxChar *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\nwnx4\src\plugins\character\character.cpp(309) : error C2664: 'wxLogMessage' : cannot convert parameter 1 from 'const char [28]' to 'const wxChar *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
log.cpp
plugin.cpp
c:\nwnx4\src\plugins\plugin.cpp(41) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion)
could be 'built-in C++ operator==(const wchar_t [13], const wchar_t [13])'
d:\program files\microsoft platform sdk for windows server 2003 r2\include\guiddef.h(192): or 'int operator ==(const GUID &,const GUID &)'
while trying to match the argument list '(std::string, const wchar_t [13])'
c:\nwnx4\src\plugins\plugin.cpp(43) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion)
could be 'built-in C++ operator==(const wchar_t [12], const wchar_t [12])'
d:\program files\microsoft platform sdk for windows server 2003 r2\include\guiddef.h(192): or 'int operator ==(const GUID &,const GUID &)'
while trying to match the argument list '(std::string, const wchar_t [12])'
c:\nwnx4\src\plugins\plugin.cpp(45) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion)
could be 'built-in C++ operator==(const wchar_t [16], const wchar_t [16])'
d:\program files\microsoft platform sdk for windows server 2003 r2\include\guiddef.h(192): or 'int operator ==(const GUID &,const GUID &)'
while trying to match the argument list '(std::string, const wchar_t [16])'
c:\nwnx4\src\plugins\plugin.cpp(4Cool : error C2664: 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_Elem,_Traits,_Ax>::_Has_debug_it)' : cannot convert parameter 1 from 'const wchar_t [1]' to 'std::basic_string<_Elem,_Traits,_Ax>::_Has_debug_it'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
Constructor for struct 'std::basic_string<_Elem,_Traits,_Ax>::_Has_debug_it' is declared 'explicit'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
Generating Code...
Build log was saved at "file://c:\nwnx4\src\plugins\character\Debug\BuildLog.htm"
XP Character - 20 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Anyone see what I may have forgotten ?
Back to top
View user's profile Send private message
Nemrod_Haven



Joined: 27 Oct 2007
Posts: 5

PostPosted: Sat Oct 27, 2007 1:08    Post subject: Reply with quote

Well managed to solve that by myself, everything compiles, but no DLL anyway... *shrug*
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group