我正在开发一个程序,在该程序中我使用i686-w64-mingw32-gcc.exe使用PDCurses3.5函数。当我编译程序时,我不断收到诸如,之类的错误。我已经检查了该标头和正确安装的库包。这是我的输入行:"undefined reference to 'COLS'"
"undefined reference to 'lines'"
<curses.h>
> i686-w64-mingw32-gcc.exe set.o read.o elements.o random.o
> -L../standard/test -lplotfit -lplotget -lgfortran -Wl,--subsystem,console -mwindows -o runtime/mingw/result -lm -static -lws2_32 -lpdcurses
错误的第一部分是:
../standard/bin/mingw/menu.o:menu.c:(.text+0xb): undefined reference to `COLS'
../standard/bin/mingw/menu.o:menu.c:(.text+0x16): undefined reference to `COLS'
../standard/bin/mingw/menu.o:menu.c:(.text+0x33): undefined reference to `LINES'
../standard/bin/mingw/menu.o:menu.c:(.text+0x47): undefined reference to `MOVE'
../standard/bin/mingw/menu.o:menu.c:(.text+0x74): undefined reference to `initscr'
...
该程序似乎无法在其库文件中引用 libpdcurses.a。我究竟做错了什么?