   help with compiler directives
  i need help!!!ok i know how to use compiler directives #ifndef, #define and #endif to make sure a library is only compiled once but it is being compiled twice in my program and making errors for some reason here is the code.help would be greatly appreciated/////////////////////////////////////////////////////////// Pong.h: interface for the Pong class.////////////////////////////////////////////////////////////////////////#ifndef _PONG_H#define _PONG_H#include #include typedef struct PaddleType{PaddleType();// constructorchar *filename;// name of bitmap for paddleLPDIRECTDRAWSURFACE7 PaddleSurf;// dd surface for paddleRECT bbox;// a bounding box for collision detectionint velocity;// vertical velocity of paddle}Paddle;PaddleType:: PaddleType():filename(NULL), PaddleSurf(NULL){}class Pong  {private:Paddle Player1;// struct for p1's paddlePaddle Player2;// struct for p2's paddlepublic:Pong();~Pong();};#endif Can anyone tell me whats wrong with it? thanksNiNoEdited by - nino on 11/12/00 2:41:54 AM  
  can someone please help i''m stuck till i figure this outHELP!!!!!!!!!!NiNo  ;  I''m guessing that you''re getting a link time error with multiple implementations of the Paddle constructor. Try moving the Paddle constructor inside the struct definition, so that it will interpreted as a inline function of the struct.  ;  thnaks SiCrane that helped but the library is still being compiled 2 times instead of one time because it always gives me the same error twicethanksNiNo  ;  someone help me please i can''t figure it outNiNo  ;  What''s the error it gives you?  