Xref: news-dnh.mv.net comp.os.msdos.djgpp:2492 Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!unixg.ubc.ca!rover.ucs.ualberta.ca!news.ucalgary.ca!mewesolo From: mewesolo AT freenet DOT calgary DOT ab DOT ca Newsgroups: comp.os.msdos.djgpp Subject: PDCurses 2.2 Date: 9 Oct 1995 02:39:33 GMT Organization: The University of Calgary Lines: 27 Nntp-Posting-Host: mewesolo AT srv1 DOT freenet DOT calgary DOT ab DOT ca Originator: mewesolo AT srv1 DOT freenet DOT calgary DOT ab DOT ca To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp I'm using DJGPP 1.12M4, and just downloaded PDCurses 2.2. It appears to be successfully installed - all the demos ran. For simplicity, I copied the libraries and .h files to the existing directories in my DJGPP installation. I have successfully written small C programs which print text to the screen and terminate (so I'm using initscr, endwin, refresh, and mvaddstr). So far so good. However, when I convert the existing C program to a C++ program by changing the name (i.e., .c to .cc), it get compile errors. Specifically, I get a warning (line 426 of curses.h) that an abstract declarator is used as a declaration, and a number of undefined references (including initscr, for example. Most of the others look like they might be called as a result of the calls I've made). Since I'm just starting C++, the first warning makes little sense to me (I'm not that familiar with C either, but I'm getting there). So, the question is, why does one incarnation of essentially identical code compile and run successfully when another doesn't? If it's something as silly as keeping the libraries in their original locations, I'll take my lumps and move on. Somehow, it doesn't seem that simple to me though. Thanks in advance. -- --------------------------------------------------------------------- Michael Wesolowski (mewesolo AT freenet DOT calgary DOT ab DOT ca)