delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/10/23:42:17

From: Riddler02 AT aol DOT com
Message-ID: <9c.19adf7a.25d4e968@aol.com>
Date: Thu, 10 Feb 2000 23:26:16 EST
Subject: Re: Linking to my library sucks! Help!
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: AOL 4.0 for Windows 95 sub 38
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019