[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conflicting types on OSX
From: |
Thomas Dickey |
Subject: |
Re: Conflicting types on OSX |
Date: |
Thu, 30 May 2019 05:25:03 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, May 29, 2019 at 03:32:47PM -0500, Bryan Christ wrote:
> 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
...
presumably you have
/usr/local/include/ncurses/curses.h
/usr/local/include/ncurses/ncurses.h
/usr/local/include/ncurses/term.h
/usr/local/include/ncurses/unctrl.h
It seems that the compiler isn't doing an implicit
-I/usr/local/include
Some of the systems which have "ports" (FreeBSD for instance) use a different
default include path. But you can add one...
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: Digital signature
- Conflicting types on OSX, Bryan Christ, 2019/05/29
- Re: Conflicting types on OSX,
Thomas Dickey <=
- Message not available
- Re: Conflicting types on OSX, Bryan Christ, 2019/05/30
- Message not available
- Re: Conflicting types on OSX, Bryan Christ, 2019/05/30
- Re: Conflicting types on OSX, Dan Gookin, 2019/05/30
- Re: Conflicting types on OSX, Bryan Christ, 2019/05/30
- Re: Conflicting types on OSX, Dan Gookin, 2019/05/30
- Re: Conflicting types on OSX, Bryan Christ, 2019/05/30