I'm trying to install PDCurses for Windows using MinGW and CodeBlocks. I'm using this tutorial as I'm hopeless at installing things, so I need a straight-forward explanation. But when I run mingw32-make.exe
, I get the build messages:
gcc -c -O2 -Wall -IC:\CodeBlocks\PDCurses-3.8 C:\CodeBlocks\PDCurses-3.8/pdcurses/addch.c
In file included from C:\CodeBlocks\PDCurses-3.8/curses.h:43,
from C:\CodeBlocks\PDCurses-3.8/curspriv.h:8,
from C:\CodeBlocks\PDCurses-3.8/pdcurses/addch.c:3:
C:/CodeBlocks/MinGW/lib/gcc/x86_64-w64-mingw32/8.1.0/include/stdarg.h:1:15: fatal error: stdarg.h: No such file or directory
#include_next <stdarg.h>
^~~~~~~~~~
compilation terminated.
mingw32-make: *** [Makefile:98: addch.o] Error 1
I tried to move the PDCurses folder from D:\CodeBlocks
to C:\CodeBlocks
because that's where MinGW itself is located, but it didn't seem to work. I tried to build every other makefile instead (ones with .bbc
, .vc
and .wcc
extensions) but I got the following error (which was honestly kind of expected since Makefile
is the file you're supposed to use for GCC, which I use):
[name of makefile]:9: *** missing separator. Stop.
I also tried to comment out the line including stdarg.h
, but then I got the same error for the next line, which included stddef.h
. I tried to comment out that line as well but got an error on the next line including stdio.h
, so the problem isn't specific to stdarg.h
.
Please explain as simply as possible, as I'm not very used to makefiles or command prompt instructions.