Hi Michael,
Using the master branch plus this one additional fix that Freddie sent fixes it:
corvette:modules/pva2pva/pdbApp>git diff
diff --git a/pdbApp/qsrv.cpp b/pdbApp/qsrv.cpp
index b233b65..f665e54 100644
--- a/pdbApp/qsrv.cpp
+++ b/pdbApp/qsrv.cpp
@@ -1,5 +1,4 @@
-#include <epicsExport.h>
#include <initHooks.h>
#include <epicsExit.h>
#include <epicsThread.h>
@@ -19,6 +18,7 @@
#include <pv/serverContext.h>
#include <pv/iocshelper.h>
+#include <epicsExport.h>
#define epicsExportSharedSymbols
#include "pvahelper.h"
Mark
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Mark Rivers
> Sent: Tuesday, February 06, 2018 6:08 PM
> To: 'Michael Davidsaver' <[email protected]>
> Cc: [email protected]
> Subject: RE: Build error for windows-x64-debug on VS2010
>
> Hi Michael,
>
> I checked out the master branch of pva2pva and did a git pull.
>
> I get this error when building:
>
> make[2]: Entering directory 'H:/epics-devel/base-
> 7.0.1/modules/pva2pva/pdbApp/O.windows-x64-debug'
> link -nologo -subsystem:windows -dll -debug -incremental:no -fixed:no -MACHINE:X64
> -out:qsrv.dll -implib:qsrv.lib pvif.obj qsrv.obj pdb.obj pdbsingle.obj demo.obj image
> demo.obj pdbgroup.obj configparse.obj H:/epics-devel/base-7.0.1/lib/windows-x64-
> debug/pvAccess.lib H:/epics-devel/base-7.0.1/lib/windows-x64-debug/pvData.lib H:/epics-
> devel/
> base-7.0.1/lib/windows-x64-debug/dbRecStd.lib H:/epics-devel/base-7.0.1/lib/windows-
> x64-debug/dbCore.lib H:/epics-devel/base-7.0.1/lib/windows-x64-debug/ca.lib H:/epics-
> devel/base-7.0.1/lib/windows-x64-debug/Com.lib
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: virtual __cdecl
> epics::pvAccess::ChannelFind::~ChannelFind(void)"
> (??1ChannelFind@pvAccess@epics@@UEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: __cdecl
> epics::pvAccess::ChannelFind::ChannelFind(void)"
> (??0ChannelFind@pvAccess@epics@@QEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: virtual __cdecl
> epics::pvAccess::ChannelPut::~ChannelPut(void)"
> (??1ChannelPut@pvAccess@epics@@UEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "protected: virtual __cdecl
> epics::pvAccess::Destroyable::~Destroyable(void)"
> (??1Destroyable@pvAccess@epics@@MEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: __cdecl
> epics::pvAccess::ChannelPut::ChannelPut(void)"
> (??0ChannelPut@pvAccess@epics@@QEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: __cdecl
> epics::pvAccess::Destroyable::Destroyable(void)"
> (??0Destroyable@pvAccess@epics@@QEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: virtual __cdecl
> epics::pvAccess::Monitor::~Monitor(void)"
> (??1Monitor@pvAccess@epics@@UEAA@XZ) already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: __cdecl
> epics::pvAccess::Monitor::Monitor(void)" (??0Monitor@pvAccess@epics@@QEAA@XZ)
> already defined in qsrv.obj
> pvAccess.lib(pvAccess.dll) : error LNK2005: "public: __cdecl
> epics::pvAccess::MonitorElement::~MonitorElement(void)"
> (??1MonitorElement@pvAccess@epics@@QEAA@XZ) already defined in
> qsrv.obj
> Creating library qsrv.lib and object qsrv.exp
> qsrv.dll : fatal error LNK1169: one or more multiply defined symbols found
> H:/epics-devel/base-7.0.1/configure/RULES_BUILD:288: recipe for target 'qsrv.dll' failed
> make[2]: *** [qsrv.dll] Error 1169
> make[2]: Leaving directory 'H:/epics-devel/base-
> 7.0.1/modules/pva2pva/pdbApp/O.windows-x64-debug'
> H:/epics-devel/base-7.0.1/configure/RULES_ARCHS:58: recipe for target 'install.windows-
> x64-debug' failed
> make[1]: *** [install.windows-x64-debug] Error 2
> make[1]: Leaving directory 'H:/epics-devel/base-7.0.1/modules/pva2pva/pdbApp'
> H:/epics-devel/base-7.0.1/configure/RULES_DIRS:84: recipe for target 'pdbApp.install'
> failed
> make: *** [pdbApp.install] Error 2
>
> H:\epics-devel\base-7.0.1\modules\pva2pva>
>
>
> > -----Original Message-----
> > From: Michael Davidsaver [mailto:[email protected]]
> > Sent: Tuesday, February 06, 2018 5:48 PM
> > To: Mark Rivers <[email protected]>
> > Cc: [email protected]
> > Subject: Re: Build error for windows-x64-debug on VS2010
> >
> > On 02/06/2018 02:47 PM, Mark Rivers wrote:
> > > Hi Michael,
> > >
> > > That fixed that error. I then got the same error with channel.cpp, so I did the same fix
> in
> > that file.
> > >
> > > That then leads to this error, which I don't know how to fix:
> >
> > Can you pull down the latest and try again?
> >
> > https://github.com/epics-
> > base/pva2pva/commit/8a9a3550b91d2e708e9d2dab07155812fa14f6df
- Replies:
- Re: Build error for windows-x64-debug on VS2010 Michael Davidsaver
- References:
- Build error for windows-x64-debug on VS2010 Mark Rivers
- Re: Build error for windows-x64-debug on VS2010 Michael Davidsaver
- RE: Build error for windows-x64-debug on VS2010 Mark Rivers
- Re: Build error for windows-x64-debug on VS2010 Michael Davidsaver
- RE: Build error for windows-x64-debug on VS2010 Mark Rivers
- Navigate by Date:
- Prev:
RE: Build error for windows-x64-debug on VS2010 Mark Rivers
- Next:
Re: Build error for windows-x64-debug on VS2010 Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Build error for windows-x64-debug on VS2010 Mark Rivers
- Next:
Re: Build error for windows-x64-debug on VS2010 Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|