| delorie.com/archives/browse.cgi | search |
| From: | LSB <a AT a DOT a> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | how to use curses? |
| Date: | Sun, 06 Oct 2002 12:20:36 +0800 |
| Organization: | ERG CUHK |
| Lines: | 51 |
| Message-ID: | <3D9FBA14.16FC5067@djgpp.env> |
| NNTP-Posting-Host: | fraser.cse.cuhk.edu.hk |
| Mime-Version: | 1.0 |
| X-Trace: | eng-ser1.erg.cuhk.edu.hk 1033878036 22479 137.189.90.232 (6 Oct 2002 04:20:36 GMT) |
| X-Complaints-To: | abuse AT erg DOT cuhk DOT edu DOT hk |
| NNTP-Posting-Date: | 6 Oct 2002 04:20:36 GMT |
| X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
| X-Accept-Language: | en,zh-TW |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi, i'm new in programming with DJGPP....
i would like to ask how can i use the curses emulator
in DJGPP under DOS?? (i'm using C instead of C++)
for example, i can compile and run the following prorgram
perfectly under UNIX....
---------------------------------
#include <curses.h>
int main(void) {
initscr();
clear();
printw("Hello World\n");
refresh();
endwin();
return 0;
}
---------------------------------
but in DOS with DJGPP...it says...
c:/djgpp/tmp/ccGjSiIn.o(.text+0x1f):temp.c: undefined reference to
`_initscr'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x24):temp.c: undefined reference to
`_stdscr'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x35):temp.c: undefined reference to
`_stdscr'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x3a):temp.c: undefined reference to
`_wmove'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x46):temp.c: undefined reference to
`_stdscr'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x4b):temp.c: undefined reference to
`_wclrtobot'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x5b):temp.c: undefined reference to
`_printw'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x67):temp.c: undefined reference to
`_stdscr'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x6c):temp.c: undefined reference to
`_wrefresh'
c:/djgpp/tmp/ccGjSiIn.o(.text+0x74):temp.c: undefined reference to
`_endwin'
collect2: ld returned 1 exit status
What wrong is going on???
Should i put some flags in the compile command?? (like "-lcurses" in
UNIX)
Can you all kindly help me???
Thx a lot!!!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |