Mail Archives: djgpp/2000/02/10/23:42:17
Here are the commands RHIDE uses to build my library:
gcc -g -c maps.cpp -o maps.o
ar rcs libmaps.a maps.o maps.o
I never noticed it before, but is it posible that my library gets screwed
up because "maps.o" appears twice for some reason? I dont know why RHIDE
does that. After I noticed that I tried manually linking the library from
the command line with "ar rcs libmaps.a maps.o" but it didnt help.
As far as making sure my prototypes and definitions are as they should
be, I'm pretty sure they are. here is a part of one of the classes from
maps.h:
class viewport_class
{
private:
public:
..........(lotsa variables).......
// MEMBER FUNCTION PROTOTYPES
viewport_class(void);
void Destroy_Viewport(void);
void Center_Viewport(int center_x, int center_y);
void Move_Viewport_To(int move_x, int move_y);
inline void Move_Viewport_X(int move_x);
inline void Move_Viewport_Y(int move_y);
}; //end viewport_class
In maps.cpp, the definitions of these member functions are correct - all the
arguments match n' everything. So I have no idea whats going on - any more
ideas? :)
-Kevin
- Raw text -