How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win

Witold E Wolski
Sorry for bothering you

I am trying to build the R grpc package on windows:
https://github.com/nfultz/grpc

against an MSYS2 build of grpc.

when running devtools::install() I am getting the following error:

C:/msys64/mingw64/include/grpc/impl/codegen/port_platform.h:47:2:
error: #error "Please compile grpc with _WIN32_WINNT of at least 0x600
(aka Windows Vista)"
 #error \
  ^

Which, if I am correct asks me to set _WIN32_WINNT=0x600

My Makevars.Win looks as follows:

PKG_CPPFLAGS=-IC:/msys64/mingw64/include
PKG_LIBS=-LC:/msys64/mingw64/lib -lgrpc

What should I do?

Have a great day
best regards
Witek



--
Witold Eryk Wolski

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win

Witold E Wolski
Hi,

Solved, some search for preprocessor helped.

PKG_CPPFLAGS=-D_WIN32_WINNT=0x600

Very Sorry for bothering you


Thank you
On Tue, 2 Oct 2018 at 23:01, Witold E Wolski <[hidden email]> wrote:

>
> Sorry for bothering you
>
> I am trying to build the R grpc package on windows:
> https://github.com/nfultz/grpc
>
> against an MSYS2 build of grpc.
>
> when running devtools::install() I am getting the following error:
>
> C:/msys64/mingw64/include/grpc/impl/codegen/port_platform.h:47:2:
> error: #error "Please compile grpc with _WIN32_WINNT of at least 0x600
> (aka Windows Vista)"
>  #error \
>   ^
>
> Which, if I am correct asks me to set _WIN32_WINNT=0x600
>
> My Makevars.Win looks as follows:
>
> PKG_CPPFLAGS=-IC:/msys64/mingw64/include
> PKG_LIBS=-LC:/msys64/mingw64/lib -lgrpc
>
> What should I do?
>
> Have a great day
> best regards
> Witek
>
>
>
> --
> Witold Eryk Wolski



--
Witold Eryk Wolski

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel