WRFV3 on Windows

I’m trying to compile WRF 3.2 on Windows and I’m facing an error when compiling with PGI Workstation 13.9

make[3]: Entering directory `/c/Data/WRF/WRFV3/external/RSL_LITE’
NOTE: your trial license will expire in 11 days, 14.9 hours.
PGC-F-0249-#error – Unsupported target platform. (C:/Program Files/PGI/Microsoft Open Tools 11/include\malloc.h: 193)
PGC/x86-64 Windows 13.9-0: compilation aborted
make[3]: [rsl_malloc.o] Error 2 (ignored)

I’ve tried to define _WIN32 and _WIN64 but this doesn’t changed this issue.
There is already a post on the same error for GAMESS https://forums.developer.nvidia.com/t/unsupported-target-platform/133559/1 but I wonder to know if I can apply the same trick.

Thank you,

Hi Xavier,

You should be able to just remove or put a preprocessor guard around the references to “malloc.h”.

  • Mat

Thank you Mat, I’ve put a preprocessor around the malloc.h.