EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: epicsRingPointer.h error C2664: 'delete' : cannot convert parameter
From: "J. Lewis Muir" <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Fri, 30 Jan 2015 17:25:15 -0600
Hello, Tech-Talkers!

I'm trying to build EPICS Base 3.14.12.4 (with the Known Problems
patches applied) for win32-x86 on Windows 7 using Microsoft Visual C++
6 (yes, a very old compiler).  The build doesn't get very far before
failing with the following output:

===
cl /nologo /EHsc /GR -c               /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /Ox /GL   /W3 /w44355       /MD  /TP   -I. -I..\\O.Common -I. -I..\\..\\..\\src\\libCom\\osi\\os\\WIN32 -I..\\..\\..\\src\\libCom\\osi\\os\\default -I.. -I..\\..\\..\\src\\libCom\\bucketLib -I..\\..\\..\\src\\libCom\\ring -I..\\..\\..\\src\\libCom\\calc -I..\\..\\..\\src\\libCom\\cvtFast -I..\\..\\..\\src\\libCom\\cppStd -I..\\..\\..\\src\\libCom\\cxxTemplates -I..\\..\\..\\src\\libCom\\dbmf -I..\\..\\..\\src\\libCom\\ellLib -I..\\..\\..\\src\\libCom\\env -I..\\..\\..\\src\\libCom\\error -I..\\..\\..\\src\\libCom\\fdmgr -I..\\..\\..\\src\\libCom\\freeList -I..\\..\\..\\src\\libCom\\gpHash -I..\\.. \\..\\src\\libCom\\iocsh -I..\\..\\..\\src\\libCom\\logClient -I..\\..\\..\\src\\libCom\\macLib -I..\\..\\..\\src\\libCom\\misc -I..\\..\\..\\src\\libCom\\osi -I..\\..\\..\\src\\libCom\\taskwd -I..\\..\\..\\src\\libCom\\timer -I..\\..\\..\\src\\libCom\\tsDefs -I..\\..!
 \\..\\include\\os\\WIN32 -I..\\..\\..\\include..\\..\\..\\src\\libCom\\ring\\epicsRingPointer.cpp
Command line warning D4002 : ignoring unknown option '/GL'
Command line warning D4002 : ignoring unknown option '/w44355'
epicsRingPointer.cpp
..\..\..\src\libCom\ring\epicsRingPointer.h(93) : error C2664: 'delete' : cannot convert parameter 1 from 'void *volatile * ' to 'void *'
        Conversion loses qualifiers
        ..\..\..\src\libCom\ring\epicsRingPointer.cpp(82) : while compiling class-template member function '__thiscall epicsRingPointer<void>::~epicsRingPointer<void>(void)'
../../../configure/RULES_BUILD:215: recipe for target 'epicsRingPointer.obj' failed
gmake[3]: *** [epicsRingPointer.obj] Error 2
gmake[3]: Leaving directory 'C:/opt/epics-base/src/libCom/O.win32-x86'
../../configure/RULES_ARCHS:63: recipe for target 'install.win32-x86' failed
gmake[2]: *** [install.win32-x86] Error 2
gmake[2]: Leaving directory 'C:/opt/epics-base/src/libCom'
../configure/RULES_DIRS:70: recipe for target 'libCom.install' failed
gmake[1]: *** [libCom.install] Error 2
gmake[1]: Leaving directory 'C:/opt/epics-base/src'
configure/RULES_DIRS:70: recipe for target 'src.install' failed
gmake: *** [src.install] Error 2
gmake: Leaving directory 'C:/opt/epics-base'
===

Obviously, it seems to be unhappy with the "delete" on line 93 of
epicsRingPointer.h, but I don't know how to fix it.  Here's a Microsoft
reference for compiler error C2664 for Visual Studio 2013 (not the
compiler used) in case it helps:

  https://msdn.microsoft.com/en-us/library/s5b150wd(v=vs.120).aspx

Any ideas?

Thank you!

Lewis


Replies:
Re: epicsRingPointer.h error C2664: 'delete' : cannot convert parameter Andrew Johnson
Re: epicsRingPointer.h error C2664: 'delete' : cannot convert parameter Jani Hakala

Navigate by Date:
Prev: calc module R3-4-2 release Mooney, Tim M.
Next: Re: epicsRingPointer.h error C2664: 'delete' : cannot convert parameter Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: calc module R3-4-2 release Mooney, Tim M.
Next: Re: epicsRingPointer.h error C2664: 'delete' : cannot convert parameter Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·