Is it possible to perform C++ builds of ECL on Windows/MSVC? Thanks, Dave
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ński ;; aka jackdaniel | Przemyśl, Poland TurtleWare - Daniel Kochmański | www.turtleware.eu
"Be the change that you wish to see in the world." - Mahatma Gandhi
On Friday, April 5th, 2024 at 8:59 PM, dave@synergy.org dave@synergy.org wrote:
Is it possible to perform C++ builds of ECL on Windows/MSVC? Thanks, Dave
It works well in Windows. Run x64 Native Tools Command Prompt for VS 2022 cd to $ECL/msvc In Makefile enable line ECL_WIN64 = 1, it turns on Windows 64 build. Then run nmake and nmake install. Last command creates Windows ECL distribution. ECL is compiled successfully on my side. 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’ll do that. Sincerely, Dmitry
Суббота, 6 апреля 2024, 10:40 +03:00 от Daniel Kochmański daniel@turtleware.eu: 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ński ;; aka jackdaniel | Przemyśl, Poland TurtleWare - Daniel Kochmański | www.turtleware.eu
"Be the change that you wish to see in the world." - Mahatma Gandhi
On Friday, April 5th, 2024 at 8:59 PM, dave@synergy.org < dave@synergy.org > wrote:
Is it possible to perform C++ builds of ECL on Windows/MSVC? Thanks, Dave
С уважением, Дмитрий, dmitrys99@mail.ru
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
From: Dmitry Solomennikov dmitrys99@mail.ru Sent: Sunday, April 7, 2024 12:52 AM To: ecl-devel@common-lisp.net Subject: Re: MSVC and C++
It works well in Windows.
Run x64 Native Tools Command Prompt for VS 2022
cd to $ECL/msvc
In Makefile enable line ECL_WIN64 = 1, it turns on Windows 64 build.
Then run nmake and nmake install. Last command creates Windows ECL distribution.
ECL is compiled successfully on my side.
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’ll do that.
Sincerely,
Dmitry
Суббота, 6 апреля 2024, 10:40 +03:00 от Daniel Kochmański <daniel@turtleware.eu mailto:daniel@turtleware.eu >:
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ński ;; aka jackdaniel | Przemyśl, Poland TurtleWare - Daniel Kochmański | www.turtleware.eu http://www.turtleware.eu
"Be the change that you wish to see in the world." - Mahatma Gandhi
On Friday, April 5th, 2024 at 8:59 PM, dave@synergy.org dave@synergy.org wrote:
Is it possible to perform C++ builds of ECL on Windows/MSVC? Thanks, Dave
С уважением, Дмитрий, dmitrys99@mail.ru mailto:dmitrys99@mail.ru