Admittedly a bit of a fish when it comes to OSX. I've got a Mojave system that I'm trying to port my application to. I just installed ncurses from source (stable 6.1).
The compile of ncurses is as follows:
./configure --prefix=/usr/local --without-cxx --without-ada --without-curses-h --with-shared --without-debug --enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events
make
sudo make install
That all seems to go well.
I'm including ncurses in this manner:
#if defined(__APPLE__) && defined(__MACH__)
#include <ncursesw/ncurses.h>
#endif
As far as I can tell, that seems correct, however when I try to compile my application, I get this...
In file included from /Users/bryanc/devel/libvterm/vterm.c:30:
In file included from /Users/bryanc/devel/libvterm/vterm.h:70:
/usr/local/include/ncursesw/ncurses.h:873:28: error: conflicting types for
'tigetflag'
extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *); ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/term.h:766:28: note:
previous declaration is here
extern NCURSES_EXPORT(int) tigetflag (NCURSES_CONST char *);
^
In file included from /Users/bryanc/devel/libvterm/vterm.c:30:
In file included from /Users/bryanc/devel/libvterm/vterm.h:70:
/usr/local/include/ncursesw/ncurses.h:874:28: error: conflicting types for
'tigetnum'
extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *); ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/term.h:767:28: note:
previous declaration is here
extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *);
^
In file included from /Users/bryanc/devel/libvterm/vterm.c:30:
In file included from /Users/bryanc/devel/libvterm/vterm.h:70:
/usr/local/include/ncursesw/ncurses.h:875:31: error: conflicting types for
'tigetstr'
extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/term.h:763:31: note:
previous declaration is here
extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *);
^
In file included from /Users/bryanc/devel/libvterm/vterm.c:30:
In file included from /Users/bryanc/devel/libvterm/vterm.h:70:
/usr/local/include/ncursesw/ncurses.h:879:31: error: conflicting types for
'tparm'
extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...); ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/term.h:770:31: note:
previous declaration is here
extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...); ...
^
4 errors generated.
--
Bryan
<><