-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS and distribution dependent makefile #41
Comments
I'm running Manjaro linux where in trying to do cc -std=c99 -Wall -Wextra -pedantic -Os -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -o mtm vtparser.c mtm.c -lncursesw -lutil
In file included from mtm.c:35:
config.h:67:36: fatal error: ncursesw/curses.h: No such file or directory
67 | #define NCURSESW_INCLUDE_H <ncursesw/curses.h>
| ^
compilation terminated.
make: *** [Makefile:14: mtm] Error 1 so I went ahead and did the following: sudo ln -s /usr/include/ncurses.h /usr/include/ncursesw/ncurses.h which fixed the error. This was based on a closed bug report I found. I thought I should file this here since it worked for me and may potentially help others. 😃 |
Very sad to need working around distribution flaws. If you have any idea how to get around this madness of make and distribution setups without a gazillion of configurations for each distribution, post your ideas. |
We could use the shell for flag inclusion |
Manjaro and Arch do use #define NCURSESW_INCLUDE_H <curses.h>,
but
__Linux__
only provides here <ncursesw/curses.h>.The general way to detect the Linux in the shell is this.
However for Windows to work we need this.
Any idea to make this easier ?
The text was updated successfully, but these errors were encountered: