Mail Archives: djgpp/1998/02/14/07:16:44
From: | Dan <dyoon AT home DOT com>
|
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
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello.
I'm trying to use lists in the <stl.h> 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*> 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
- Raw text -