Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved conversion from wxString to std::string to function to catch al…
…l these conversion in one location
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f4e1dd5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiling with MSVC++ for Windows fails miserably
See the Opencpn forum threads please.
http://www.cruisersforum.com/forums/f134/calculator_pi-new-finished-plugin-for-opencpn-86028-6.html#post1593948
http://willkamp.com/opencpn/flyspray/index.php?do=details&task_id=1459&project=23
Reason: cannot convert from 'std::string' to 'const mu::string_type'
No user-defined-conversion operator available that can perform this co
nversion, or the operator cannot be called
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\bu
ild\calculator_pi.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\bu
ild\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\ALL_BUILD.vcxproj"
(default target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcxp
roj" (default target) (3) ->
(ClCompile target) ->
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\tchar.h(2388):
warning C4005: '_T' : macro redefinition [C:\Data-Dart\Up-Soft\Navigation\o-plug
in\calculator_pi\build\calculator_pi.vcxproj]
..\src\calculatorgui_impl.cpp(469): warning C4800: 'wxChoice *' : forcing valu
e to bool 'true' or 'false' (performance warning) [C:\Data-Dart\Up-Soft\Navigati
on\o-plugin\calculator_pi\build\calculator_pi.vcxproj]
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\ALL_BUILD.vcxproj"
(default target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcxp
roj" (default target) (3) ->
(ClCompile target) ->
..\src\calculatorgui_impl.cpp(338): error C2664: 'mu::ParserBase::DefineConst'
: cannot convert parameter 1 from 'const char [3]' to 'const mu::string_type &'
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcx
proj]
..\src\calculatorgui_impl.cpp(339): error C2664: 'mu::ParserBase::DefineConst'
: cannot convert parameter 1 from 'const char [2]' to 'const mu::string_type &'
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcx
proj]
..\src\calculatorgui_impl.cpp(340): error C2664: 'mu::ParserBase::DefineConst'
: cannot convert parameter 1 from 'const char [4]' to 'const mu::string_type &'
[C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcx
proj]
..\src\calculatorgui_impl.cpp(341): error C2664: 'mu::ParserBase::SetVarFactor
y' : cannot convert parameter 1 from 'mu::value_type *(__cdecl *)(const char *,v
oid *)' to 'mu::facfun_type' [C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculato
r_pi\build\calculator_pi.vcxproj]
..\src\calculatorgui_impl.cpp(549): error C2664: 'mu::ParserBase::SetExpr' : c
annot convert parameter 1 from 'std::string' to 'const mu::string_type &' [C:\Da
ta-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcxproj]
..\src\calculatorgui_impl.cpp(557): error C2664: 'mu::ParserBase::SetExpr' : c
annot convert parameter 1 from 'std::string' to 'const mu::string_type &' [C:\Da
ta-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcxproj]
..\src\calculatorgui_impl.cpp(716): error C2664: 'mu::ParserBase::SetExpr' : c
annot convert parameter 1 from 'std::string' to 'const mu::string_type &' [C:\Da
ta-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcxproj]
..\src\calculatorgui_impl.cpp(722): error C2664: 'mu::ParserBase::SetExpr' : c
annot convert parameter 1 from 'std::string' to 'const mu::string_type &' [C:\Da
ta-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build\calculator_pi.vcxproj]
Time Elapsed 00:00:03.57
C:\Data-Dart\Up-Soft\Navigation\o-plugin\calculator_pi\build>