| delorie.com/archives/browse.cgi | search |
| From: | moshe <mosdoron AT netvision DOT net DOT il> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | multiple define |
| Date: | Tue, 27 Apr 1999 16:38:18 +0300 |
| Organization: | NetVision Israel |
| Lines: | 31 |
| Message-ID: | <3725BDCA.9BAB73EC@netvision.net.il> |
| NNTP-Posting-Host: | ras2-p25.jlm.netvision.net.il |
| Mime-Version: | 1.0 |
| X-Trace: | news.netvision.net.il 925306899 29307 62.0.161.153 (28 Apr 1999 13:41:39 GMT) |
| X-Complaints-To: | abuse AT netvision DOT net DOT il |
| NNTP-Posting-Date: | 28 Apr 1999 13:41:39 GMT |
| X-Mailer: | Mozilla 4.05 [en] (Win95; I) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
hi when i define class in file for exemple "Ccircle.h":
typedef class Ccircle {
private:
// bla bla bla
public:
int initialize(int getX, int getY);
void cleanup();
};
and use "Ccircle.cpp" to write his functions:
#include "enemy.h"
int Ccircle::initialize(int getX, int getY) {
// bla bla bla
}
void Ccircle::cleanup() {
// bla bla bla
}
i get multiple defining error BTW i use anther file "program.cpp"
whare the program locate and the file start with:
#include "Ccircle.h"
how is the corect defining/declaring that i need to use?
thanks.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |