From: boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au (Gregary J Boyles) Newsgroups: comp.os.msdos.djgpp Subject: PDCurses problem. Date: 16 Feb 1997 04:18:16 GMT Organization: Comp.Sci & Comp.Eng, La Trobe Uni, Australia Lines: 40 Distribution: world Message-ID: <5e61q8$sbf@lion.cs.latrobe.edu.au> NNTP-Posting-Host: lion.cs.latrobe.edu.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Trying to link curses into a program. Command line was : gxx -otest.exe test.cc string.o curswin.cc -lcurs Produced : In file included from curswin.hh:18, from test.cc:55: d:/djgpp/include/curses.h:426: warning: abstract declarator used as declaration In file included from curswin.hh:18, from curswin.cc:14: d:/djgpp/include/curses.h:426: warning: abstract declarator used as declaration C:\DOS\ccdaaaaa(.text+0x152):test.cc: undefined reference to `werase(_win *)' C:\DOS\ccdaaaaa(.text+0x16c):test.cc: undefined reference to `wrefresh(_win *)' C:\DOS\ccdaaaaa(.text+0x1be):test.cc: undefined reference to `wattrset(_win *, unsigned long)' C:\DOS\ccdaaaaa(.text+0x1e9):test.cc: undefined reference to `wattrset(_win *, unsigned long)' C:\DOS\ccdaaaaa(.text+0x208):test.cc: undefined reference to `delwin(_win *)' C:\DOS\ccdaaaaa(.text+0x214):test.cc: undefined reference to `delwin(_win *)' C:\DOS\cceaaaaa(.text+0x18):curswin.cc: undefined reference to `initscr(void)' C:\DOS\cceaaaaa(.text+0x1d):curswin.cc: undefined reference to `start_color(void)' C:\DOS\cceaaaaa(.text+0x29):curswin.cc: undefined reference to `raw(void)' C:\DOS\cceaaaaa(.text+0x34):curswin.cc: undefined reference to `endwin(void)' C:\DOS\cceaaaaa(.text+0xc9):curswin.cc: undefined reference to `newwin(int, int, int, int)' C:\DOS\cceaaaaa(.text+0x201):curswin.cc: undefined reference to `newwin(int, int, int, int)' C:\DOS\cceaaaaa(.text+0x2dd):curswin.cc: undefined reference to `newwin(int, int, int, int)' C:\DOS\cceaaaaa(.text+0x303):curswin.cc: undefined reference to `overwrite(_win *, _win *)' C:\DOS\cceaaaaa(.text+0x387):curswin.cc: undefined reference to `delwin(_win *)' C:\DOS\cceaaaaa(.text+0x3a1):curswin.cc: undefined reference to `newwin(int, int, int, int)' C:\DOS\cceaaaaa(.text+0x3c0):curswin.cc: undefined reference to `overwrite(_win *, _win *)' C:\DOS\cceaaaaa(.text+0x94e):curswin.cc: undefined reference to `werase(_win *)' C:\DOS\cceaaaaa(.text+0xa04):curswin.cc: undefined reference to `init_pair(short, short, short)' What does the c:\dos\cceaaaaa nonsense mean and why can't the compiler find the functions? Also how would I rebuild the curses archive file (libcurs.a) from all the object files. I read the info page for ar and it is useless because it has no examples. I tried dozens of command lines but ar did not recognize any of them. The info pages don't properley explain how to pass the options and file names to ar.