The following program fails to compile at linking time with the undefined symbol error for symbols
import Darwin.ncurses let maxx = getmaxx(stdscr)
My environment: Xcode 11.3.1 (11C504) on macOS 10.15.2 (19C57). Nothing else fancy, just running a
swift run in a package generated by SPM with the “executable” type, and a single
main.swift source file containing the code above.
Anybody has any idea what’s going on and how to fix this?
-Xlinker -lncurses options solves the compilation. I still don’t know why it does not work out of the box. Is this a bug? Should I report it?