From: "Andrew R. Gillett" Newsgroups: comp.os.msdos.djgpp Subject: Make: Error 1? Date: Wed, 27 Oct 1999 11:34:07 +0100 Organization: www.release-dates.co.uk Message-ID: NNTP-Posting-Host: modem-42.name43.dialup.pol.co.uk X-Trace: news5.svr.pol.co.uk 941020476 12267 62.136.181.42 (27 Oct 1999 10:34:36 GMT) NNTP-Posting-Date: 27 Oct 1999 10:34:36 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: MicroPlanet Gravity v2.20.1575 Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com C:\TOOLS\Code\Death>make gpp -c -g -Wall death.cpp death.cpp: In function `int main(int, char **)': death.cpp:1171: passing `const int *' as argument 2 of `spline(BITMAP *, int *, int)' discards qualifiers death.cpp: In function `void play_the_game()': death.cpp:2191: passing `const int *' as argument 2 of `spline(BITMAP *, int *, int)' discards qualifiers death.cpp: In function `void draw_sidebar_stuff()': death.cpp:5733: passing `const char *' as argument 3 of `textout(BITMAP *, FONT *, char *, int, int, int)' discards qualifiers death.cpp:5734: passing `const char *' as argument 3 of `textout(BITMAP *, FONT *, char *, int, int, int)' discards qualifiers death.cpp:5735: passing `const char *' as argument 3 of `textout(BITMAP *, FONT *, char *, int, int, int)' discards qualifiers make.exe: *** [death.o] Error 1 The errors it listed occur because I am using const_iterators instead of iterators to display the splines, and in the case of textout, I am using c_str. These errors have never been a problem before (other than being annoying, as they all come up whenver I compile). They never stopped compilation in its tracks. Only now that I have split the program into two source files does it stop compiling. -- Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage Abducensnerve