Subject:
|
Re: NQC release
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Wed, 16 Mar 2005 14:17:46 GMT
|
Viewed:
|
5734 times
|
| |
| |
Making progress:
I changed the public: to private: in RCX_Image.h and here was the output
after I did a `make clean`:
[root@aluminum nqc-3.1.r1]# make
g++ -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
bin/mkdata compiler/rcx1.nqh compiler/rcx1_nqh.h rcx1_nqh
bin/mkdata compiler/rcx2.nqh compiler/rcx2_nqh.h rcx2_nqh
bin/mkdata -s rcxlib/fastdl.srec rcxlib/rcxnub.h rcxnub
(cd compiler ; bison -y -d parse.y ; \
mv -f y.tab.c parse.cpp ; mv -f y.tab.h parse.tab.h )
g++ -c -pipe -Iplatform -Ircxlib -Inqc -Icompiler -Wall
-Wstrict-prototypes -Wmissing-prototypes -I/usr/local/include/LegoUSB
-Wno-deprecated -DDEFAULT_SERIAL_NAME='"/dev/ttyS0"' nqc/nqc.cpp -o
nqc/nqc.o
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 but not for C++
In file included from nqc/nqc.cpp:27:
rcxlib/RCX_Image.h:56:2: invalid preprocessing directive #public
rcxlib/RCX_Image.h: In function `RCX_Result ProcessFile(const char*,
const Request&)':
rcxlib/RCX_Image.h:60: error: `RCX_Image::RCX_Image()' is private
nqc/nqc.cpp:526: error: within this context
rcxlib/RCX_Image.h:63: error: `RCX_Result RCX_Image::Read(const char*)'
is private
nqc/nqc.cpp:527: error: within this context
rcxlib/RCX_Image.h:61: error: `RCX_Image::~RCX_Image()' is private
nqc/nqc.cpp:531: error: within this context
rcxlib/RCX_Image.h:64: error: `bool RCX_Image::Write(const char*)' is
private
nqc/nqc.cpp:558: error: within this context
rcxlib/RCX_Image.h:61: error: `RCX_Image::~RCX_Image()' is private
nqc/nqc.cpp:593: error: within this context
rcxlib/RCX_Image.h: In function `bool GenerateListing(RCX_Image*, const
char*, bool)':
rcxlib/RCX_Image.h:67: error: `void RCX_Image::Print(RCX_Printer*,
RCX_SourceFiles*) const' is private
nqc/nqc.cpp:615: error: within this context
rcxlib/RCX_Image.h: In function `RCX_Result Download(RCX_Image*)':
rcxlib/RCX_Image.h:66: error: `RCX_Result RCX_Image::Download(RCX_Link*,
int) const' is private
nqc/nqc.cpp:633: error: within this context
nqc/nqc.cpp: At global scope:
nqc/nqc.cpp:1231: warning: 'void PrintToken(int, TokenVal)' defined but
not used
make: *** [nqc/nqc.o] Error 1
[root@aluminum nqc-3.1.r1]#
Thanks!
Rich
http://www.robotthoughts.com
John Hansen wrote:
> In lugnet.robotics.rcx.nqc, Rich Thompson wrote:
>
> > rcxlib/RCX_Image.h:107: error: class RCX_Image::Chunk redeclared with
> > different access
>
>
> Can you try adding "private:" directly above the declaration of the nested type
> Chunk in RCX_Image.h? I'd like to confirm that that change fixes the problem.
> If any more compile errors (or warnings) show up let me know here or via email.
>
> Thanks!
>
> John Hansen
>
>
|
|
Message has 1 Reply: | | 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)
|
Message is in Reply To:
| | Re: NQC release
|
| (...) Can you try adding "private:" directly above the declaration of the nested type Chunk in RCX_Image.h? I'd like to confirm that that change fixes the problem. If any more compile errors (or warnings) show up let me know here or via email. (...) (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
|
|
|
|