|
楼主 |
发表于 2003-6-4 20:44:13
|
显示全部楼层
错误信息如下:
g++ -o mw1 mw.cpp -L/usr/lib/libcurses.so -lcurses
mw.cpp: In function `int main()':
mw.cpp:24: `exit' undeclared (first use this function)
mw.cpp:24: (Each undeclared identifier is reported only once for each function
it appears in.)
很奇怪啊,gcc -lcurses就可以编译成功。
我怀疑,curses不能在c++里用啊。
怎么办? |
|