X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <007801c18d60$9f566260$9227110a@koti> From: "Timo Inki" To: References: Subject: Vs: Undefined references(errors) with my own class Date: Tue, 25 Dec 2001 18:24:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id fBPGEGD27859 Reply-To: djgpp AT delorie DOT com So, I've solved this one. I forgot to include my .o files to project when .h files were included already. But I got another problem with my two classes. I have BITMAP and SPRITE classes wich both have the friend function 'int BMCollision(SPRITE *a, BITMAP *b)' It is with bitmap.h in bitmap.cpp while sprite.h contains only its prototype. Headers are cross-included by these headerfiles 'cose of the function above. Compiler shows an error for BITMAP.cpp in prototype line of that function: Parse error before * SPRITE.cpp compiles OK. > Post the smallest example you can make to demonstrate the problem and the > command(s) you are using, then someone is sure to help. Timo