From: Dan Newsgroups: comp.os.msdos.djgpp Subject: algobase.h Date: Sat, 14 Feb 1998 03:47:58 -0800 Organization: @Home Network Lines: 33 Message-ID: <34E5846E.7335@home.com> Reply-To: dyoon AT home DOT com NNTP-Posting-Host: cc104221-a.bnapk1.occa.home.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello. I'm trying to use lists in the class. I'm using djgpp and Allegro. the problem i'm having is in the following line of code... sprite_list::const_iterator spr=sprites.begin(); some lines of code before this that might be of some help are... class sprite { protected: fix X,Y; public: sprite(fix _X,fix _Y) { X=_X; Y=_Y; } virtual ~sprite() {} virtual void draw(BITMAP*dest) {} virtual void animate() {} }; typedef list sprite_list; sprite_list sprites; now when i try to compile the code i get the following error... e:/djgpp/lang/cxx/algobase.h(75)Error: parse error at null character e:/djgpp/lang/cxx/algobase.h(75)Error: 'n' undeclared anyone have any idea how i can fix this? am i just using this class wrong or is there something wrong w/ my algobase.h file? any help would be greatly appreciated. Daniel