Trying to build with MinGW

16 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 7, 2020, 8:40:09 AM3/7/20
to vim...@googlegroups.com

On my Windows 10 laptop I'm trying to build a non-GUI debug version with
MinGW. It has a few complaints, first one is that INT_MAX was not
defined. I solved that by including <limits.h> in vim.h.

Building with the terminal feature fails with
LPROC_THREAD_ATTRIBUTE_LIST undefined.

I disabled FEAT_TERMINAL for now, then the linking fails with
"-municode" not being defined.

Is this perhaps because my MinGW version is too old?


--
hundred-and-one symptoms of being an internet addict:
185. You order fast food over the Internet

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

John Marriott

unread,
Mar 7, 2020, 3:13:51 PM3/7/20
to vim...@googlegroups.com

On 08-Mar-2020 00:39, Bram Moolenaar wrote:
> On my Windows 10 laptop I'm trying to build a non-GUI debug version with
> MinGW. It has a few complaints, first one is that INT_MAX was not
> defined. I solved that by including <limits.h> in vim.h.
>
> Building with the terminal feature fails with
> LPROC_THREAD_ATTRIBUTE_LIST undefined.
>
> I disabled FEAT_TERMINAL for now, then the linking fails with
> "-municode" not being defined.
>
> Is this perhaps because my MinGW version is too old?
>
>
Hi Bram,

Yeah I reckon it's old. I have been using mingw64 to build both vim and
gvim for years now with no problems.

It could be time to update.

In case you were wondering, I use the latest x64 builds from here
(currently gcc v9.2.1): https://gcc-mcf.lhmouse.com
I've also used builds from here:
https://sourceforge.net/projects/mingw-w64-dgn/files/mingw-w64
I've not tried it but I think builds from here work as well (gcc v9.1):
https://nuwen.net/mingw.html
For an older gcc release:
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh

Cheers
John

Bram Moolenaar

unread,
Mar 8, 2020, 11:02:21 AM3/8/20
to vim...@googlegroups.com, John Marriott
Thanks for the hints.

I tried the second entry in INSTALLpc.txt, using MSYS2 with MinGW, but
the website appears to be down.

It would be nice if we have one way that "just works"...

--
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
your PDA and download the information to your laptop

Ken Takata

unread,
Mar 8, 2020, 11:18:12 AM3/8/20
to vim_dev
Hi,
It seems that the msys2 site is down these few days.
You can download the installer from here for now:

Regards,
Ken Takata
Reply all
Reply to author
Forward
0 new messages