Subject:
|
Re: NQC release
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Wed, 16 Mar 2005 16:36:52 GMT
|
Viewed:
|
5513 times
|
| |
| |
Ahh...I shouldn't add comments to anything before my first green tea of
the morning. I moved line 56 back to public: and went to line 81 and
found private: was already there...
81 private:
82 class Chunk
83 {
84 public:
85
86 const UByte* GetData() const { return fData; }
So I did:
make clean
make
[snip]
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid
for Ada/C/ObjC butnot for C++
In file included from nqc/nqc.cpp:27:
rcxlib/RCX_Image.h:107: error: class RCX_Image::Chunk redeclared with
different access
nqc/nqc.cpp:1231: warning: 'void PrintToken(int, TokenVal)' defined but
not used
make: *** [nqc/nqc.o] Error 1
And I am back to the same error.
Thanks!
Rich
John Hansen wrote:
> In lugnet.robotics.rcx.nqc, Rich Thompson wrote:
>
> > Making progress:
> >
> > I changed the public: to private: in RCX_Image.h and here was the output
> > after I did a `make clean`:
>
>
> I was not sufficiently clear. My apologies. Line 56 needs to remain unchanged:
>
> public:
>
> Comments, by the way, in C++ are specified by '//' rather than '#'. I say that
> because it looks like your compiler is complaining about a line (56) that
> contains #public.
>
> Further down (it should be at line 81) you should see the definition of class
> Chunk (rather than the declaration above at line 57). Just prior to the
> definition of class Chunk at line 81 you should insert a new line that looks
> like this:
>
> private:
>
> Try doing a make clean after restoring line 56 to its original state and
> inserting the new line just prior to the definition of class Chunk at line 81.
> I don't know why your compiler is complaining about it but hopefully this small
> change will satisfy it.
>
> John Hansen
>
>
|
|
Message has 1 Reply: | | Re: NQC release
|
| (...) I'm apparently very confused. I could have sworn I checked the code here and there wasn't a "private:" before the class Chunk definition starting at line 81. But after double checking just now indeed there is one there. That's what had me (...) (20 years ago, 16-Mar-05, to lugnet.robotics.rcx.nqc)
|
Message is in Reply To:
| | Re: NQC release
|
| (...) I was not sufficiently clear. My apologies. Line 56 needs to remain unchanged: public: Comments, by the way, in C++ are specified by '//' rather than '#'. I say that because it looks like your compiler is complaining about a line (56) that (...) (20 years ago, 16-Mar-05, to lugnet.robotics.rcx.nqc)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|