| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:5356 |
| From: | yantis AT rice DOT edu (Theodore Yantis Howard) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Help! Turbo c++ compiled, but DJGPP 2.0 doesn't! |
| Date: | 25 Jun 1996 06:04:01 GMT |
| Organization: | Rice University, Houston, Texas |
| Lines: | 43 |
| Message-ID: | <4qnvgh$q5n@larry.rice.edu> |
| References: | <31CDA320 DOT 6943 AT infomatch DOT com> |
| NNTP-Posting-Host: | great-gray.owlnet.rice.edu |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
: Basically all of the errors are like this:
: In file included from dosiface.cpp:8:
: slist.h:19: `SList' is neither function nor method; cannot be declared friend
: (heres the code that generated the error)
: class LLString
: {
: protected:
: LLString* Next;
: char* Item;
: public:
: friend SList;
: LLString() {}
: ~LLString() {};
: };
It seems that DJGPP doesn't know SList exists (or at least it might think
SList is a variable).
: Or like this:
: slist.cpp: In method `char * SList::Get_next()':
: slist.cpp:69: member `Item' is a protected member of class `LLString'
: slist.cpp:70: member `Next' is a protected member of class `LLString'
Since the 'friend' line was deemed incorrect, it probably wasn't parsed
and so DJGPP doesn't think that SList is a friend function. This is only
a side-effect of the previous error.
--
-Ted (yantis AT rice DOT edu)
"Prohibition will work great injury to the cause of temperance. It is a
species of intemperance within itself, for it goes beyond the bounds of
reason in that it attempts to control a man's appetite by legislation, and
makes a crime out of things that are not crimes. A Prohibition law strikes
a blow at the very principles upon which our government was founded."
-Abraham Lincoln (1809-65) U.S. President.
Speech to Illinois House of Representatives, 18 Dec. 1840
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |