Problems with Win10, VS2013 building 4.8.1
1>chartdldr_pi.obj : error LNK2001: unresolved external symbol "int const wxEVT_DOWNLOAD_EVENT" (?wxEVT_DOWNLOAD_EVENT@@3HB)
1>D:\plugins\4.8.1\OpenCPN\build\plugins\chartdldr _pi\Release\chartdldr_pi.dll : fatal error LNK1120: 1 unresolved externals
Ptizef in
Building Opencpn using mingw (gcc) on Windows made an extern definition.
How is this done? Is it needed?
Lots of warnings about wxEvent associated with ocpn_plugin.h.
"D:\plugins\4.8.1\OpenCPN\build\opencpn.vcxpro j" (default target) (15) ->
(Link target) ->
expat.lib(expat.dll) : error LNK2005: _XML_ParserCreate already defined in wxexpat.lib(xmlparse.obj) [D:\plugins\4.8.
1\OpenCPN\build\opencpn.vcxproj]
expat.lib(expat.dll) : error LNK2005: _XML_SetElementHandler already defined in wxexpat.lib(xmlparse.obj) [D:\plugins
\4.8.1\OpenCPN\build\opencpn.vcxproj]
expat.lib(expat.dll) : error LNK2005: _XML_SetCharacterDataHandler already defined in wxexpat.lib(xmlparse.obj) [D:\p
lugins\4.8.1\OpenCPN\build\opencpn.vcxproj]
expat.lib(expat.dll) : error LNK2005: _XML_SetCommentHandler already defined in wxexpat.lib(xmlparse.obj) [D:\plugins
\4.8.1\OpenCPN\build\opencpn.vcxproj]
expat.lib(expat.dll) : error LNK2005: _XML_SetDefaultHandler already defined in wxexpat.lib(xmlparse.obj) [D:\plugins
\4.8.1\OpenCPN\build\opencpn.vcxproj]
To get round this I had to remove this linker input in the
opencpn project:
..\..\..\buildwin\expat-2.1.0\expat.lib
It seems as if we have two libs trying to do the same job ... the one in buildwin and the other in wxWidgets wxexpat.lib
This happens on a relatively clean box with a first build of OpenCPN and freshly installed helper programs like CMake etc.
Mike