You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all.
C++11 generated common/common.hpp don't compile, because it includes stdio.h and contains EOF=6, while stdio.h defines #define EOF (-1).
This is how common.hpp includes stdio.h
In file included from /usr/include/c++/11/cstdio:42,
from /usr/include/c++/11/ext/string_conversions.h:43,
from /usr/include/c++/11/bits/basic_string.h:6594,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from (...)/include/mavlink/common/common.hpp:10,
Here common.hpp contains EOF=6:
enumclassMAV_FTP_ERR
{
NONE=0, /* None: No error | */
FAIL=1, /* Fail: Unknown failure | */
FAILERRNO=2, /* FailErrno: Command failed, Err number sent back in PayloadHeader.data[1]. This is a file-system error number understood by the server operating system. | */
INVALIDDATASIZE=3, /* InvalidDataSize: Payload size is invalid | */
INVALIDSESSION=4, /* InvalidSession: Session is not currently open | */
NOSESSIONSAVAILABLE=5, /* NoSessionsAvailable: All available sessions are already in use | */
EOF=6, /* EOF: Offset past end of file for ListDirectory and ReadFile commands | */
UNKNOWNCOMMAND=7, /* UnknownCommand: Unknown command / opcode | */
FILEEXISTS=8, /* FileExists: File/directory already exists | */
FILEPROTECTED=9, /* FileProtected: File/directory is write protected | */
FILENOTFOUND=10, /* FileNotFound: File/directory not found | */
};
There was an issue in mavlink mavlink/mavlink#1853, but we open issue here as was suggested.
Hi all.
C++11 generated
common/common.hpp
don't compile, because it includesstdio.h
and containsEOF=6
, whilestdio.h
defines#define EOF (-1)
.This is how
common.hpp
includesstdio.h
Here
common.hpp
contains EOF=6:There was an issue in mavlink mavlink/mavlink#1853, but we open issue here as was suggested.
Proposed solution: #761
Thanks
The text was updated successfully, but these errors were encountered: