RE: MSVC and C++
<[email protected]> Sun, 7 Apr 2024 03:44:51 -0700
| Newsgroups | gmane.lisp.ecl.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format.
------=_NextPart_000_0003_01DA889D.F32B5FC0
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Dmitry,
Thank you for the description. Your instructions are =
exactly the ones I use, as well. They work great. I have tested both =
32-bit and 64-bit builds in the past. Like you, I only use 64-bit now. =
What I was trying to determine is whether the msvc Makefile and =
infrastructure would support the C++ language, rather than just C. For =
autoconf-based platforms there is a --with-cxx option to enable this =
behavior. But I saw nothing in the msvc directory to provide the same =
capability. According to Marius and Daniel, it may not be too difficult =
to implement, but it does not exist today.
Dave
=20
=20
From: Dmitry Solomennikov <dmitrys99-JGs/[email protected]>=20
Sent: Sunday, April 7, 2024 12:52 AM
To: [email protected]
Subject: Re: MSVC and C++
=20
It works well in Windows.
=20
Run x64 Native Tools Command Prompt for VS 2022
cd to $ECL/msvc
In Makefile enable line ECL_WIN64 =3D 1, it turns on Windows 64 build.
Then run nmake and nmake install. Last command creates Windows ECL =
distribution.
=20
ECL is compiled successfully on my side.
=20
I did not test other VS version, but it should work as well. Also, I =
only tried win64 builds, have no idea if it will work with other =
configurations, drop a note if you=E2=80=99ll do that.
=20
Sincerely,
Dmitry
=20
=D0=A1=D1=83=D0=B1=D0=B1=D0=BE=D1=82=D0=B0, 6 =
=D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2024, 10:40 +03:00 =D0=BE=D1=82 =
Daniel Kochma=C5=84ski <[email protected] =
<mailto:[email protected]> >:
=20
Hey Dave,
technically there shouldn't be any issue with the compilation. That
said *I think* that cl.exe picks the compiler mode based on the file
extension, and as you will see in msvc/c/Makefile, dpp compiles .d files =
to .c.
ECL (as the source code) can run with C++ core and C++ compilers but for =
Windows appropriate Makefile *doesn't seem* to cater to that.
Best regards,
Daniel
--
Daniel Kochma=C5=84ski ;; aka jackdaniel | Przemy=C5=9Bl, Poland
TurtleWare - Daniel Kochma=C5=84ski | www.turtleware.eu =
<http://www.turtleware.eu>=20
"Be the change that you wish to see in the world." - Mahatma Gandhi
On Friday, April 5th, 2024 at 8:59 PM, [email protected] =
<[email protected]> wrote:
=20
> Is it possible to perform C++ builds of ECL on Windows/MSVC?
> Thanks,
> Dave
=20
=20
=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =
=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9,
dmitrys99-JGs/[email protected] <mailto:dmitrys99-JGs/[email protected]>=20
=20
------=_NextPart_000_0003_01DA889D.F32B5FC0
Content-Type: text/html;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-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=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator 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:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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=3DEN-US link=3Dblue =
vlink=3Dpurple style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal>Dmitry,<o:p></o:p></p><p =
class=3DMsoNormal>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 Thank you for the description. Your =
instructions are exactly the ones I use, as well. They work great. I =
have tested both 32-bit and 64-bit builds in the past. Like you, I only =
use 64-bit now. What I was trying to determine is whether the msvc =
Makefile and infrastructure would support the C++ language, rather than =
just C. For autoconf-based platforms there is a --with-cxx option to =
enable this behavior. But I saw nothing in the msvc directory to provide =
the same capability. According to Marius and Daniel, it may not be too =
difficult to implement, but it does not exist today.<o:p></o:p></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Dave<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p> </o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt'><o:p> </o:p></span></p><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span><=
/b><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
Dmitry Solomennikov <dmitrys99-JGs/[email protected]> <br><b>Sent:</b> Sunday, =
April 7, 2024 12:52 AM<br><b>To:</b> =
[email protected]<br><b>Subject:</b> Re: MSVC and =
C++<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p> </o:p></p><div><div><p =
class=3DMsoNormal><br>It works well in =
Windows.<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><p =
class=3DMsoNormal>Run x64 Native Tools Command Prompt for VS =
2022<o:p></o:p></p></div><div><p class=3DMsoNormal>cd to =
$ECL/msvc<o:p></o:p></p></div><div><p class=3DMsoNormal>In Makefile =
enable line ECL_WIN64 =3D 1, it turns on Windows 64 =
build.<o:p></o:p></p></div><div><p class=3DMsoNormal>Then run nmake and =
nmake install. Last command creates Windows ECL =
distribution.<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><p =
class=3DMsoNormal>ECL is compiled successfully on my =
side.<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><p class=3DMsoNormal>I =
did not test other VS version, but it should work as well. Also, I only =
tried win64 builds, have no idea if it will work with other =
configurations, drop a note if you=E2=80=99ll do =
that.<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><p =
class=3DMsoNormal>Sincerely,<o:p></o:p></p></div><div><p =
class=3DMsoNormal>Dmitry<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #0857A6 1.0pt;padding:0in 0in 0in =
8.0pt;margin-left:7.5pt;margin-top:7.5pt;margin-right:7.5pt;margin-bottom=
:7.5pt'><p class=3DMsoNormal>=D0=A1=D1=83=D0=B1=D0=B1=D0=BE=D1=82=D0=B0, =
6 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2024, 10:40 +03:00 =D0=BE=D1=82 =
Daniel Kochma=C5=84ski <<a =
href=3D"mailto:[email protected]">[email protected]</a>>:<br>&nb=
sp;<o:p></o:p></p><div id=3D""><div><div><div =
id=3D"style_17123892061552768858_BODY"><p class=3DMsoNormal>Hey =
Dave,<br><br>technically there shouldn't be any issue with the =
compilation. That<br>said *I think* that cl.exe picks the compiler mode =
based on the file<br>extension, and as you will see in msvc/c/Makefile, =
dpp compiles .d files to .c.<br><br>ECL (as the source code) can run =
with C++ core and C++ compilers but for Windows appropriate Makefile =
*doesn't seem* to cater to that.<br><br>Best =
regards,<br>Daniel<br><br><br><br>--<br>Daniel Kochma=C5=84ski ;; aka =
jackdaniel | Przemy=C5=9Bl, Poland<br>TurtleWare - Daniel =
Kochma=C5=84ski | <a =
href=3D"http://www.turtleware.eu">www.turtleware.eu</a><br><br>"Be =
the change that you wish to see in the world." - Mahatma =
Gandhi<br><br><br><br>On Friday, April 5th, 2024 at 8:59 PM, <a =
href=3D"/[email protected]">[email protected]</a> <<a =
href=3D"/[email protected]">[email protected]</a>> =
wrote:<br> <o:p></o:p></p><div><p class=3DMsoNormal>> Is it =
possible to perform C++ builds of ECL on Windows/MSVC?<br>> =
Thanks,<br>> =
Dave<o:p></o:p></p></div></div></div></div></div></blockquote><p =
class=3DMsoNormal> <o:p></o:p></p><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><div><div><p =
class=3DMsoNormal>=D0=A1 =
=D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =
=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9,<br><a =
href=3D"mailto:dmitrys99-JGs/[email protected]">dmitrys99-JGs/[email protected]</a><o:p></o:p></p></d=
iv></div></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div></div></div></body></html>
------=_NextPart_000_0003_01DA889D.F32B5FC0--