delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <007801c18d60$9f566260$9227110a@koti> |
From: | "Timo Inki" <triq AT mbnet DOT fi> |
To: | <djgpp AT delorie DOT com> |
References: | <gloU7.231$sR3 DOT 23997 AT read2 DOT inet DOT fi> <r7g42ug5f7p25teief4obkfk4oec096ssv AT 4ax DOT com> |
Subject: | Vs: Undefined references(errors) with my own class |
Date: | Tue, 25 Dec 2001 18:24:26 +0200 |
MIME-Version: | 1.0 |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |