Building doxygen from source in VS2017 fails with: "error C2280: attempting to reference a deleted function"

Eric EHLERS via Doxygen-users <[email protected]> Wed, 14 Sep 2022 14:33:22 +0000
Newsgroups gmane.text.doxygen.general
Message-ID <[email protected]>
--===============3318172976644326562==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_f5d4d1976dee426bb85e845beefcd5b0GBW00144706ADRESHSBC_"

--_000_f5d4d1976dee426bb85e845beefcd5b0GBW00144706ADRESHSBC_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello

I am trying to build doxygen from source on Windows using Visual Studio 201=
7.  The build fails with the following error message:

5>doxycfg.vcxproj -> C:\erik\projects\doxygen\build17\build\lib\Debug\doxyc=
fg.lib
6>C:\ projects\doxygen\doxygen-1.9.5\src\docbookgen.cpp(632): error C2280: =
'DocbookDocVisitor::DocbookDocVisitor(const DocbookDocVisitor &)': attempti=
ng to reference a deleted function
6>c:\ projects\doxygen\doxygen-1.9.5\src\docbookvisitor.h(152): note: compi=
ler has generated 'DocbookDocVisitor::DocbookDocVisitor' here
6>c:\ projects\doxygen\doxygen-1.9.5\src\docbookvisitor.h(152): note: 'Docb=
ookDocVisitor::DocbookDocVisitor(const DocbookDocVisitor &)': function was =
implicitly deleted because a base class invokes a deleted or inaccessible f=
unction 'DocVisitor::DocVisitor(const DocVisitor &)'
6>c:\ projects\doxygen\doxygen-1.9.5\src\docvisitor.h(37): note: 'DocVisito=
r::DocVisitor(const DocVisitor &)': function was implicitly deleted because=
 a data member invokes a deleted or inaccessible function 'std::unique_ptr<=
DocVisitor::Private,std::default_delete<_Ty>>::unique_ptr(const std::unique=
_ptr<_Ty,std::default_delete<_Ty>> &)'
6>        with
6>        [
6>            _Ty=3DDocVisitor::Private
6>        ]
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\M=
SVC\14.12.25827\include\memory(2380): note: 'std::unique_ptr<DocVisitor::Pr=
ivate,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::=
default_delete<_Ty>> &)': function was explicitly deleted
6>        with
6>        [
6>            _Ty=3DDocVisitor::Private
6>        ]

Any idea what I'm doing wrong?

Regards,
Eric


PUBLIC

-----------------------------------------
SAVE PAPER - THINK BEFORE YOU PRINT!

This E-mail is confidential.=20

It may also be legally privileged. If you are not the addressee you may not=
 copy,
forward, disclose or use any part of it. If you have received this message =
in error,
please delete it and all copies from your system and notify the sender imme=
diately by
return E-mail.

Internet communications cannot be guaranteed to be timely secure, error or =
virus-free.
The sender does not accept liability for any errors or omissions.

--_000_f5d4d1976dee426bb85e845beefcd5b0GBW00144706ADRESHSBC_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-GB" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I am trying to build doxygen from source on Windows =
using Visual Studio 2017.&nbsp; The build fails with the following error me=
ssage:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">5&gt;doxycfg.vcxproj -&gt; C:\er=
ik\projects\doxygen\build17\build\lib\Debug\doxycfg.lib<o:p></o:p></span></=
p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;C:\ projects\doxygen\doxyge=
n-1.9.5\src\docbookgen.cpp(632): error C2280: 'DocbookDocVisitor::DocbookDo=
cVisitor(const DocbookDocVisitor &amp;)': attempting
 to reference a deleted function<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;c:\ projects\doxygen\doxyge=
n-1.9.5\src\docbookvisitor.h(152): note: compiler has generated 'DocbookDoc=
Visitor::DocbookDocVisitor' here<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;c:\ projects\doxygen\doxyge=
n-1.9.5\src\docbookvisitor.h(152): note: 'DocbookDocVisitor::DocbookDocVisi=
tor(const DocbookDocVisitor &amp;)': function
 was implicitly deleted because a base class invokes a deleted or inaccessi=
ble function 'DocVisitor::DocVisitor(const DocVisitor &amp;)'<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;c:\ projects\doxygen\doxyge=
n-1.9.5\src\docvisitor.h(37): note: 'DocVisitor::DocVisitor(const DocVisito=
r &amp;)': function was implicitly deleted because
 a data member invokes a deleted or inaccessible function 'std::unique_ptr&=
lt;DocVisitor::Private,std::default_delete&lt;_Ty&gt;&gt;::unique_ptr(const=
 std::unique_ptr&lt;_Ty,std::default_delete&lt;_Ty&gt;&gt; &amp;)'<o:p></o:=
p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; with<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; [<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Ty=3DDocVisitor::Private<o:p></o:p=
></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; ]<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;C:\Program Files (x86)\Micr=
osoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\memor=
y(2380): note: 'std::unique_ptr&lt;DocVisitor::Private,std::default_delete&=
lt;_Ty&gt;&gt;::unique_ptr(const
 std::unique_ptr&lt;_Ty,std::default_delete&lt;_Ty&gt;&gt; &amp;)': functio=
n was explicitly deleted<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; with<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; [<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Ty=3DDocVisitor::Private<o:p></o:p=
></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:9.5pt;font-family:Consolas;color:black">6&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; ]<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Any idea what I'm doing wrong?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Regards,<o:p></o:p></p>
<p class=3D"MsoNormal">Eric<o:p></o:p></p>
<br>
<p class=3D"msipfootercffe3ac4" align=3D"Center" style=3D"margin:0"><span s=
tyle=3D"font-size:10.0pt;font-family:Calibri;color:#000000">PUBLIC</span></=
p>
</div>

<DIV>
-----------------------------------------<BR>
SAVE PAPER - THINK BEFORE YOU PRINT!<BR>
<BR>
This E-mail is confidential. <BR>
<BR>
It may also be legally privileged. If you are not the addressee you may not=
 copy,<BR>
forward, disclose or use any part of it. If you have received this message =
in error,<BR>
please delete it and all copies from your system and notify the sender imme=
diately by<BR>
return E-mail.<BR>
<BR>
Internet communications cannot be guaranteed to be timely secure, error or =
virus-free.<BR>
The sender does not accept liability for any errors or omissions.<BR>
</DIV></body>
</html>

--_000_f5d4d1976dee426bb85e845beefcd5b0GBW00144706ADRESHSBC_--


--===============3318172976644326562==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============3318172976644326562==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Doxygen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-users

--===============3318172976644326562==--