Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #16

Open
parkerlreed opened this issue Feb 23, 2022 · 2 comments
Open

Compile error #16

parkerlreed opened this issue Feb 23, 2022 · 2 comments

Comments

@parkerlreed
Copy link

parkerlreed commented Feb 23, 2022

Regular release build
Boost 1.78.0
Protobuf 3.19.4

[ 90%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/MessageId.cpp.o
/home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/Cryptor.cpp: In member function ‘virtual size_t aasdk::messenger::Cryptor::decrypt(aasdk::common::Data&, const aasdk::common::DataConstBuffer&, int)’:
/home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/Cryptor.cpp:191:12: warning: variable ‘availableBytes’ set but not used [-Wunused-but-set-variable]
  191 |     size_t availableBytes = length;
      |            ^~~~~~~~~~~~~~
[ 90%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/MessageInStream.cpp.o
[ 91%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/MessageOutStream.cpp.o
/home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/Message.cpp: In member function ‘void aasdk::messenger::Message::insertPayload(const google::protobuf::Message&)’:
/home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/Message.cpp:86:55: warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
   86 |     payload_.resize(payload_.size() + message.ByteSize());
      |                                       ~~~~~~~~~~~~~~~~^~
In file included from /usr/include/google/protobuf/generated_enum_util.h:36,
                 from /usr/include/google/protobuf/generated_enum_reflection.h:44,
                 from /usr/include/google/protobuf/generated_message_reflection.h:46,
                 from /usr/include/google/protobuf/message.h:122,
                 from /home/parker/build/aasdk-git/src/aasdk-git/include/aasdk/Messenger/Message.hpp:23,
                 from /home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/Message.cpp:19:
/usr/include/google/protobuf/message_lite.h:386:7: note: declared here
  386 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
      |       ^~~~~~~~
[ 91%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/Messenger.cpp.o
[ 91%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/Timestamp.cpp.o
[ 92%] Building CXX object CMakeFiles/aasdk.dir/src/TCP/TCPEndpoint.cpp.o
/home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/MessageInStream.cpp: In member function ‘void aasdk::messenger::MessageInStream::receiveFramePayloadHandler(const aasdk::common::DataConstBuffer&)’:
/home/parker/build/aasdk-git/src/aasdk-git/src/Messenger/MessageInStream.cpp:157:9: error: ‘currentMessageIndex_’ was not declared in this scope
  157 |         currentMessageIndex_--;
      |         ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/aasdk.dir/build.make:398: CMakeFiles/aasdk.dir/src/Messenger/MessageInStream.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/aasdk.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
@parkerlreed parkerlreed changed the title Boost 1.78.0 compile error Compile error Feb 23, 2022
@nperrachione
Copy link

I have the same problem

@radisc
Copy link

radisc commented Jul 5, 2022

Just comment currentMessageIndex_--; nothing else it is using that variable
Same with the next error you will get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants