Master demo run

479 views
Skip to first unread message

sameer ahmed

unread,
Aug 3, 2016, 2:00:17 PM8/3/16
to automatak-dnp3
After Make install, when i compile g++ master/main.cpp i get these whole lot of errors . The make did happen successfully.Please help


In file included from /usr/include/c++/5/cstdint:35:0,
from /usr/local/include/openpal/logging/LogEntry.h:24,
from /usr/local/include/openpal/logging/ILogHandler.h:24,
from /usr/local/include/asiodnp3/DNP3Manager.h:24,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from /usr/local/include/openpal/logging/LogEntry.h:26:0,
from /usr/local/include/openpal/logging/ILogHandler.h:24,
from /usr/local/include/asiodnp3/DNP3Manager.h:24,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/logging/LogFilters.h:40:21: error: expected ‘)’ before ‘filters_’
LogFilters(int32_t filters_) : filters(filters_)
^
/usr/local/include/openpal/logging/LogFilters.h:43:20: error: ‘int32_t’ has not been declared
inline bool IsSet(int32_t levels) const
^
/usr/local/include/openpal/logging/LogFilters.h:53:2: error: ‘int32_t’ does not name a type
int32_t GetBitfield() const
^
/usr/local/include/openpal/logging/LogFilters.h:60:2: error: ‘int32_t’ does not name a type
int32_t filters;
^
/usr/local/include/openpal/logging/LogFilters.h: In constructor ‘openpal::LogFilters::LogFilters()’:
/usr/local/include/openpal/logging/LogFilters.h:37:17: error: class ‘openpal::LogFilters’ does not have any field named ‘filters’
LogFilters() : filters(0)
^
/usr/local/include/openpal/logging/LogFilters.h: In member function ‘bool openpal::LogFilters::IsSet(int) const’:
/usr/local/include/openpal/logging/LogFilters.h:45:20: error: ‘filters’ was not declared in this scope
return (levels & filters) != 0;
^
/usr/local/include/openpal/logging/LogFilters.h: In member function ‘bool openpal::LogFilters::operator&(const openpal::LogFilters&) const’:
/usr/local/include/openpal/logging/LogFilters.h:50:20: error: ‘const class openpal::LogFilters’ has no member named ‘filters’
return IsSet(rhs.filters);
^
In file included from /usr/local/include/asiodnp3/DNP3Manager.h:25:0,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/TimeDuration.h: At global scope:
/usr/local/include/openpal/executor/TimeDuration.h:64:46: error: ‘int64_t’ was not declared in this scope
class TimeDuration : public TimeDurationBase<int64_t>
^
/usr/local/include/openpal/executor/TimeDuration.h:64:53: error: template argument 1 is invalid
class TimeDuration : public TimeDurationBase<int64_t>
^
/usr/local/include/openpal/executor/TimeDuration.h:84:35: error: ‘int64_t’ has not been declared
static TimeDuration Milliseconds(int64_t milliseconds);
^
/usr/local/include/openpal/executor/TimeDuration.h:86:30: error: ‘int64_t’ has not been declared
static TimeDuration Seconds(int64_t seconds);
^
/usr/local/include/openpal/executor/TimeDuration.h:88:30: error: ‘int64_t’ has not been declared
static TimeDuration Minutes(int64_t minutes);
^
/usr/local/include/openpal/executor/TimeDuration.h:90:28: error: ‘int64_t’ has not been declared
static TimeDuration Hours(int64_t hours);
^
/usr/local/include/openpal/executor/TimeDuration.h:92:27: error: ‘int64_t’ has not been declared
static TimeDuration Days(int64_t days);
^
/usr/local/include/openpal/executor/TimeDuration.h:95:23: error: expected ‘)’ before ‘aMilliseconds’
TimeDuration(int64_t aMilliseconds);
^
/usr/local/include/openpal/executor/TimeDuration.h: In member function ‘openpal::TimeDuration openpal::TimeDuration::MultiplyBy(int) const’:
/usr/local/include/openpal/executor/TimeDuration.h:75:32: error: ‘milliseconds’ was not declared in this scope
return TimeDuration(factor * milliseconds);
^
In file included from /usr/local/include/asiodnp3/DNP3Manager.h:27:0,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/ChannelState.h: At global scope:
/usr/local/include/opendnp3/gen/ChannelState.h:31:12: error: use of enum ‘ChannelState’ without previous declaration
enum class ChannelState : uint8_t
^
/usr/local/include/opendnp3/gen/ChannelState.h:31:25: error: expected unqualified-id before ‘:’ token
enum class ChannelState : uint8_t
^
/usr/local/include/opendnp3/gen/ChannelState.h:45:34: error: ‘ChannelState’ was not declared in this scope
char const* ChannelStateToString(ChannelState arg);
^
In file included from /usr/local/include/opendnp3/link/LinkChannelStatistics.h:24:0,
from /usr/local/include/asiodnp3/IChannel.h:25,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/channel/ChannelStatistics.h:55:2: error: ‘uint32_t’ does not name a type
uint32_t numOpen;
^
/usr/local/include/openpal/channel/ChannelStatistics.h:58:2: error: ‘uint32_t’ does not name a type
uint32_t numOpenFail;
^
/usr/local/include/openpal/channel/ChannelStatistics.h:61:2: error: ‘uint32_t’ does not name a type
uint32_t numClose;
^
/usr/local/include/openpal/channel/ChannelStatistics.h:64:2: error: ‘uint32_t’ does not name a type
uint32_t numBytesRx;
^
/usr/local/include/openpal/channel/ChannelStatistics.h:67:2: error: ‘uint32_t’ does not name a type
uint32_t numBytesTx;
^
/usr/local/include/openpal/channel/ChannelStatistics.h: In constructor ‘openpal::ChannelStatistics::ChannelStatistics()’:
/usr/local/include/openpal/channel/ChannelStatistics.h:51:24: error: class ‘openpal::ChannelStatistics’ does not have any field named ‘numOpen’
ChannelStatistics() : numOpen(0), numOpenFail(0), numClose(0), numBytesRx(0), numBytesTx(0)
^
/usr/local/include/openpal/channel/ChannelStatistics.h:51:36: error: class ‘openpal::ChannelStatistics’ does not have any field named ‘numOpenFail’
ChannelStatistics() : numOpen(0), numOpenFail(0), numClose(0), numBytesRx(0), numBytesTx(0)
^
/usr/local/include/openpal/channel/ChannelStatistics.h:51:52: error: class ‘openpal::ChannelStatistics’ does not have any field named ‘numClose’
ChannelStatistics() : numOpen(0), numOpenFail(0), numClose(0), numBytesRx(0), numBytesTx(0)
^
/usr/local/include/openpal/channel/ChannelStatistics.h:51:65: error: class ‘openpal::ChannelStatistics’ does not have any field named ‘numBytesRx’
ChannelStatistics() : numOpen(0), numOpenFail(0), numClose(0), numBytesRx(0), numBytesTx(0)
^
/usr/local/include/openpal/channel/ChannelStatistics.h:51:80: error: class ‘openpal::ChannelStatistics’ does not have any field named ‘numBytesTx’
ChannelStatistics() : numOpen(0), numOpenFail(0), numClose(0), numBytesRx(0), numBytesTx(0)
^
In file included from /usr/local/include/asiodnp3/IChannel.h:25:0,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/link/LinkChannelStatistics.h: At global scope:
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:38:2: error: ‘uint32_t’ does not name a type
uint32_t numCrcError;
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:41:2: error: ‘uint32_t’ does not name a type
uint32_t numLinkFrameTx;
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:44:2: error: ‘uint32_t’ does not name a type
uint32_t numLinkFrameRx;
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:47:2: error: ‘uint32_t’ does not name a type
uint32_t numBadLinkFrameRx;
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h: In constructor ‘opendnp3::LinkChannelStatistics::LinkChannelStatistics()’:
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:34:28: error: class ‘opendnp3::LinkChannelStatistics’ does not have any field named ‘numCrcError’
LinkChannelStatistics() : numCrcError(0), numLinkFrameTx(0), numLinkFrameRx(0), numBadLinkFrameRx(0)
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:34:44: error: class ‘opendnp3::LinkChannelStatistics’ does not have any field named ‘numLinkFrameTx’
LinkChannelStatistics() : numCrcError(0), numLinkFrameTx(0), numLinkFrameRx(0), numBadLinkFrameRx(0)
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:34:63: error: class ‘opendnp3::LinkChannelStatistics’ does not have any field named ‘numLinkFrameRx’
LinkChannelStatistics() : numCrcError(0), numLinkFrameTx(0), numLinkFrameRx(0), numBadLinkFrameRx(0)
^
/usr/local/include/opendnp3/link/LinkChannelStatistics.h:34:82: error: class ‘opendnp3::LinkChannelStatistics’ does not have any field named ‘numBadLinkFrameRx’
LinkChannelStatistics() : numCrcError(0), numLinkFrameTx(0), numLinkFrameRx(0), numBadLinkFrameRx(0)
^
In file included from /usr/local/include/opendnp3/master/MasterParams.h:26:0,
from /usr/local/include/opendnp3/master/MasterStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:27,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/TimeSyncMode.h: At global scope:
/usr/local/include/opendnp3/gen/TimeSyncMode.h:31:12: error: use of enum ‘TimeSyncMode’ without previous declaration
enum class TimeSyncMode : uint8_t
^
/usr/local/include/opendnp3/gen/TimeSyncMode.h:31:25: error: expected unqualified-id before ‘:’ token
enum class TimeSyncMode : uint8_t
^
In file included from /usr/local/include/opendnp3/app/ClassField.h:26:0,
from /usr/local/include/opendnp3/master/MasterParams.h:27,
from /usr/local/include/opendnp3/master/MasterStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:27,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/EventType.h:31:12: error: use of enum ‘EventType’ without previous declaration
enum class EventType : uint16_t
^
/usr/local/include/opendnp3/app/EventType.h:31:22: error: expected unqualified-id before ‘:’ token
enum class EventType : uint16_t
^
/usr/local/include/opendnp3/app/EventType.h:43:12: error: use of enum ‘EventClass’ without previous declaration
enum class EventClass : uint8_t
^
/usr/local/include/opendnp3/app/EventType.h:43:23: error: expected unqualified-id before ‘:’ token
enum class EventClass : uint8_t
^
In file included from /usr/local/include/opendnp3/app/ClassField.h:27:0,
from /usr/local/include/opendnp3/master/MasterParams.h:27,
from /usr/local/include/opendnp3/master/MasterStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:27,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/PointClass.h:31:12: error: use of enum ‘PointClass’ without previous declaration
enum class PointClass : uint8_t
^
/usr/local/include/opendnp3/gen/PointClass.h:31:23: error: expected unqualified-id before ‘:’ token
enum class PointClass : uint8_t
^
In file included from /usr/local/include/opendnp3/master/MasterParams.h:27:0,
from /usr/local/include/opendnp3/master/MasterStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:27,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/ClassField.h:41:24: error: expected ‘)’ before ‘pc’
ClassField(PointClass pc);
^
/usr/local/include/opendnp3/app/ClassField.h:43:21: error: expected ‘)’ before ‘mask_’
ClassField(uint8_t mask_);
^
/usr/local/include/opendnp3/app/ClassField.h:51:2: error: ‘uint8_t’ does not name a type
uint8_t GetBitfield() const
^
/usr/local/include/opendnp3/app/ClassField.h:62:11: error: ‘PointClass’ has not been declared
void Set(PointClass pc);
^
/usr/local/include/opendnp3/app/ClassField.h:64:15: error: ‘uint8_t’ does not name a type
static const uint8_t CLASS_0 = static_cast<uint8_t>(PointClass::Class0);
^
/usr/local/include/opendnp3/app/ClassField.h:65:15: error: ‘uint8_t’ does not name a type
static const uint8_t CLASS_1 = static_cast<uint8_t>(PointClass::Class1);
^
/usr/local/include/opendnp3/app/ClassField.h:66:15: error: ‘uint8_t’ does not name a type
static const uint8_t CLASS_2 = static_cast<uint8_t>(PointClass::Class2);
^
/usr/local/include/opendnp3/app/ClassField.h:67:15: error: ‘uint8_t’ does not name a type
static const uint8_t CLASS_3 = static_cast<uint8_t>(PointClass::Class3);
^
/usr/local/include/opendnp3/app/ClassField.h:68:15: error: ‘uint8_t’ does not name a type
static const uint8_t EVENT_CLASSES = CLASS_1 | CLASS_2 | CLASS_3;
^
/usr/local/include/opendnp3/app/ClassField.h:69:15: error: ‘uint8_t’ does not name a type
static const uint8_t ALL_CLASSES = EVENT_CLASSES | CLASS_0;
^
/usr/local/include/opendnp3/app/ClassField.h:71:20: error: ‘EventClass’ has not been declared
bool HasEventType(EventClass ec) const;
^
/usr/local/include/opendnp3/app/ClassField.h:86:2: error: ‘uint8_t’ does not name a type
uint8_t bitfield;
^
In file included from /usr/local/include/opendnp3/master/MasterStackConfig.h:24:0,
from /usr/local/include/asiodnp3/IChannel.h:27,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/MasterParams.h:44:2: error: ‘TimeSyncMode’ does not name a type
TimeSyncMode timeSyncMode;
^
/usr/local/include/opendnp3/master/MasterParams.h:72:2: error: ‘uint32_t’ does not name a type
uint32_t maxTxFragSize;
^
/usr/local/include/opendnp3/master/MasterParams.h:75:2: error: ‘uint32_t’ does not name a type
uint32_t maxRxFragSize;
^
In file included from /usr/local/include/opendnp3/master/MasterStackConfig.h:25:0,
from /usr/local/include/asiodnp3/IChannel.h:27,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/link/LinkConfig.h:37:6: error: ‘uint32_t’ has not been declared
uint32_t numRetry,
^
/usr/local/include/opendnp3/link/LinkConfig.h:38:6: error: ‘uint16_t’ has not been declared
uint16_t localAddr,
^
/usr/local/include/opendnp3/link/LinkConfig.h:39:6: error: ‘uint16_t’ has not been declared
uint16_t remoteAddr,
^
/usr/local/include/opendnp3/link/LinkConfig.h:72:2: error: ‘uint32_t’ does not name a type
uint32_t NumRetry;
^
/usr/local/include/opendnp3/link/LinkConfig.h:75:2: error: ‘uint16_t’ does not name a type
uint16_t LocalAddr;
^
/usr/local/include/opendnp3/link/LinkConfig.h:78:2: error: ‘uint16_t’ does not name a type
uint16_t RemoteAddr;
^
/usr/local/include/opendnp3/link/LinkConfig.h: In constructor ‘opendnp3::LinkConfig::LinkConfig(bool, bool, int, int, int, openpal::TimeDuration, openpal::TimeDuration)’:
/usr/local/include/opendnp3/link/LinkConfig.h:45:3: error: class ‘opendnp3::LinkConfig’ does not have any field named ‘NumRetry’
NumRetry(numRetry),
^
/usr/local/include/opendnp3/link/LinkConfig.h:46:3: error: class ‘opendnp3::LinkConfig’ does not have any field named ‘LocalAddr’
LocalAddr(localAddr),
^
/usr/local/include/opendnp3/link/LinkConfig.h:47:3: error: class ‘opendnp3::LinkConfig’ does not have any field named ‘RemoteAddr’
RemoteAddr(remoteAddr),
^
/usr/local/include/opendnp3/link/LinkConfig.h: In constructor ‘opendnp3::LinkConfig::LinkConfig(bool, bool)’:
/usr/local/include/opendnp3/link/LinkConfig.h:58:3: error: class ‘opendnp3::LinkConfig’ does not have any field named ‘NumRetry’
NumRetry(0),
^
/usr/local/include/opendnp3/link/LinkConfig.h:59:3: error: class ‘opendnp3::LinkConfig’ does not have any field named ‘LocalAddr’
LocalAddr(isMaster ? 1 : 1024),
^
/usr/local/include/opendnp3/link/LinkConfig.h:60:3: error: class ‘opendnp3::LinkConfig’ does not have any field named ‘RemoteAddr’
RemoteAddr(isMaster ? 1024 : 1),
^
In file included from /usr/local/include/opendnp3/app/QualityMasks.h:24:0,
from /usr/local/include/opendnp3/app/MeasurementTypes.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/BinaryQuality.h: At global scope:
/usr/local/include/opendnp3/gen/BinaryQuality.h:31:12: error: use of enum ‘BinaryQuality’ without previous declaration
enum class BinaryQuality : uint8_t
^
/usr/local/include/opendnp3/gen/BinaryQuality.h:31:26: error: expected unqualified-id before ‘:’ token
enum class BinaryQuality : uint8_t
^
In file included from /usr/local/include/opendnp3/app/QualityMasks.h:25:0,
from /usr/local/include/opendnp3/app/MeasurementTypes.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/DoubleBitBinaryQuality.h:31:12: error: use of enum ‘DoubleBitBinaryQuality’ without previous declaration
enum class DoubleBitBinaryQuality : uint8_t
^
/usr/local/include/opendnp3/gen/DoubleBitBinaryQuality.h:31:35: error: expected unqualified-id before ‘:’ token
enum class DoubleBitBinaryQuality : uint8_t
^
In file included from /usr/local/include/opendnp3/app/QualityMasks.h:26:0,
from /usr/local/include/opendnp3/app/MeasurementTypes.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/CounterQuality.h:31:12: error: use of enum ‘CounterQuality’ without previous declaration
enum class CounterQuality : uint8_t
^
/usr/local/include/opendnp3/gen/CounterQuality.h:31:27: error: expected unqualified-id before ‘:’ token
enum class CounterQuality : uint8_t
^
In file included from /usr/local/include/opendnp3/app/QualityMasks.h:27:0,
from /usr/local/include/opendnp3/app/MeasurementTypes.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/AnalogQuality.h:31:12: error: use of enum ‘AnalogQuality’ without previous declaration
enum class AnalogQuality : uint8_t
^
/usr/local/include/opendnp3/gen/AnalogQuality.h:31:26: error: expected unqualified-id before ‘:’ token
enum class AnalogQuality : uint8_t
^
In file included from /usr/local/include/opendnp3/app/QualityMasks.h:28:0,
from /usr/local/include/opendnp3/app/MeasurementTypes.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/BinaryOutputStatusQuality.h:31:12: error: use of enum ‘BinaryOutputStatusQuality’ without previous declaration
enum class BinaryOutputStatusQuality : uint8_t
^
/usr/local/include/opendnp3/gen/BinaryOutputStatusQuality.h:31:38: error: expected unqualified-id before ‘:’ token
enum class BinaryOutputStatusQuality : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:24:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/QualityMasks.h:33:8: error: ‘uint8_t’ does not name a type
inline uint8_t ToUnderlying(T flag)
^
In file included from /usr/local/include/opendnp3/Types.h:24:0,
from /usr/local/include/opendnp3/app/BaseMeasurementTypes.h:26,
from /usr/local/include/opendnp3/app/MeasurementTypes.h:25,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/serialization/UInt48Type.h:34:31: error: expected ‘)’ before ‘value’
explicit UInt48Type(uint64_t value) : representation(value)
^
/usr/local/include/openpal/serialization/UInt48Type.h:40:18: error: expected type-specifier before ‘uint64_t’
inline operator uint64_t() const
^
/usr/local/include/openpal/serialization/UInt48Type.h:45:2: error: ‘uint64_t’ does not name a type
uint64_t Get() const
^
/usr/local/include/openpal/serialization/UInt48Type.h:52:2: error: ‘uint64_t’ does not name a type
uint64_t representation;
^
/usr/local/include/openpal/serialization/UInt48Type.h: In constructor ‘openpal::UInt48Type::UInt48Type()’:
/usr/local/include/openpal/serialization/UInt48Type.h:37:17: error: class ‘openpal::UInt48Type’ does not have any field named ‘representation’
UInt48Type() : representation(0)
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:25:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h: At global scope:
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:40:2: error: ‘uint8_t’ does not name a type
uint8_t quality; // bitfield that stores type specific quality information
^
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:48:22: error: expected ‘)’ before ‘quality_’
Measurement(uint8_t quality_) : quality(quality_)
^
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:51:22: error: expected ‘)’ before ‘quality_’
Measurement(uint8_t quality_, DNPTime time_) : quality(quality_), time(time_)
^
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h: In constructor ‘opendnp3::Measurement::Measurement()’:
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:45:18: error: class ‘opendnp3::Measurement’ does not have any field named ‘quality’
Measurement() : quality(0)
^
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h: At global scope:
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:70:27: error: expected ‘)’ before ‘quality’
TypedMeasurement(uint8_t quality) : Measurement(quality), value(0) {}
^
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:71:28: error: ‘uint8_t’ has not been declared
TypedMeasurement(T value, uint8_t quality) : Measurement(quality), value(value) {}
^
/usr/local/include/opendnp3/app/BaseMeasurementTypes.h:72:28: error: ‘uint8_t’ has not been declared
TypedMeasurement(T value, uint8_t quality, DNPTime time) : Measurement(quality, time), value(value) {}
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:27:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/EventMetadata.h:41:2: error: ‘PointClass’ does not name a type
PointClass clazz;
^
/usr/local/include/opendnp3/app/EventMetadata.h: In constructor ‘opendnp3::EventMetadata<Target>::EventMetadata()’:
/usr/local/include/opendnp3/app/EventMetadata.h:52:20: error: class ‘opendnp3::EventMetadata<Target>’ does not have any field named ‘clazz’
EventMetadata() : clazz(PointClass::Class1), lastEvent(), variation(Target::DefaultEventVariation)
^
/usr/local/include/opendnp3/app/EventMetadata.h:52:26: error: ‘PointClass’ has not been declared
EventMetadata() : clazz(PointClass::Class1), lastEvent(), variation(Target::DefaultEventVariation)
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:29:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/DoubleBit.h: At global scope:
/usr/local/include/opendnp3/gen/DoubleBit.h:31:12: error: use of enum ‘DoubleBit’ without previous declaration
enum class DoubleBit : uint8_t
^
/usr/local/include/opendnp3/gen/DoubleBit.h:31:22: error: expected unqualified-id before ‘:’ token
enum class DoubleBit : uint8_t
^
/usr/local/include/opendnp3/gen/DoubleBit.h:43:1: error: ‘uint8_t’ does not name a type
uint8_t DoubleBitToType(DoubleBit arg);
^
/usr/local/include/opendnp3/gen/DoubleBit.h:44:1: error: ‘DoubleBit’ does not name a type
DoubleBit DoubleBitFromType(uint8_t arg);
^
/usr/local/include/opendnp3/gen/DoubleBit.h:45:31: error: ‘DoubleBit’ was not declared in this scope
char const* DoubleBitToString(DoubleBit arg);
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:31:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticBinaryVariation.h:28:12: error: use of enum ‘StaticBinaryVariation’ without previous declaration
enum class StaticBinaryVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticBinaryVariation.h:28:34: error: expected unqualified-id before ‘:’ token
enum class StaticBinaryVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:32:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticDoubleBinaryVariation.h:28:12: error: use of enum ‘StaticDoubleBinaryVariation’ without previous declaration
enum class StaticDoubleBinaryVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticDoubleBinaryVariation.h:28:40: error: expected unqualified-id before ‘:’ token
enum class StaticDoubleBinaryVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:33:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticBinaryOutputStatusVariation.h:28:12: error: use of enum ‘StaticBinaryOutputStatusVariation’ without previous declaration
enum class StaticBinaryOutputStatusVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticBinaryOutputStatusVariation.h:28:46: error: expected unqualified-id before ‘:’ token
enum class StaticBinaryOutputStatusVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:34:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticCounterVariation.h:28:12: error: use of enum ‘StaticCounterVariation’ without previous declaration
enum class StaticCounterVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticCounterVariation.h:28:35: error: expected unqualified-id before ‘:’ token
enum class StaticCounterVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:35:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticFrozenCounterVariation.h:28:12: error: use of enum ‘StaticFrozenCounterVariation’ without previous declaration
enum class StaticFrozenCounterVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticFrozenCounterVariation.h:28:41: error: expected unqualified-id before ‘:’ token
enum class StaticFrozenCounterVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:36:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticAnalogVariation.h:28:12: error: use of enum ‘StaticAnalogVariation’ without previous declaration
enum class StaticAnalogVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticAnalogVariation.h:28:34: error: expected unqualified-id before ‘:’ token
enum class StaticAnalogVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:37:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticAnalogOutputStatusVariation.h:28:12: error: use of enum ‘StaticAnalogOutputStatusVariation’ without previous declaration
enum class StaticAnalogOutputStatusVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticAnalogOutputStatusVariation.h:28:46: error: expected unqualified-id before ‘:’ token
enum class StaticAnalogOutputStatusVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:39:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticTypeBitmask.h:31:12: error: use of enum ‘StaticTypeBitmask’ without previous declaration
enum class StaticTypeBitmask : uint16_t
^
/usr/local/include/opendnp3/gen/StaticTypeBitmask.h:31:30: error: expected unqualified-id before ‘:’ token
enum class StaticTypeBitmask : uint16_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:41:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventBinaryVariation.h:28:12: error: use of enum ‘EventBinaryVariation’ without previous declaration
enum class EventBinaryVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventBinaryVariation.h:28:33: error: expected unqualified-id before ‘:’ token
enum class EventBinaryVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:42:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventDoubleBinaryVariation.h:28:12: error: use of enum ‘EventDoubleBinaryVariation’ without previous declaration
enum class EventDoubleBinaryVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventDoubleBinaryVariation.h:28:39: error: expected unqualified-id before ‘:’ token
enum class EventDoubleBinaryVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:43:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventBinaryOutputStatusVariation.h:28:12: error: use of enum ‘EventBinaryOutputStatusVariation’ without previous declaration
enum class EventBinaryOutputStatusVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventBinaryOutputStatusVariation.h:28:45: error: expected unqualified-id before ‘:’ token
enum class EventBinaryOutputStatusVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:44:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventCounterVariation.h:28:12: error: use of enum ‘EventCounterVariation’ without previous declaration
enum class EventCounterVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventCounterVariation.h:28:34: error: expected unqualified-id before ‘:’ token
enum class EventCounterVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:45:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventFrozenCounterVariation.h:28:12: error: use of enum ‘EventFrozenCounterVariation’ without previous declaration
enum class EventFrozenCounterVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventFrozenCounterVariation.h:28:40: error: expected unqualified-id before ‘:’ token
enum class EventFrozenCounterVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:46:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventAnalogVariation.h:28:12: error: use of enum ‘EventAnalogVariation’ without previous declaration
enum class EventAnalogVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventAnalogVariation.h:28:33: error: expected unqualified-id before ‘:’ token
enum class EventAnalogVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/MeasurementTypes.h:47:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:26,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventAnalogOutputStatusVariation.h:28:12: error: use of enum ‘EventAnalogOutputStatusVariation’ without previous declaration
enum class EventAnalogOutputStatusVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventAnalogOutputStatusVariation.h:28:45: error: expected unqualified-id before ‘:’ token
enum class EventAnalogOutputStatusVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/MeasurementTypes.h:67:17: error: expected ‘)’ before ‘quality’
Binary(uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:69:17: error: expected ‘)’ before ‘quality’
Binary(uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:71:21: error: ‘uint8_t’ has not been declared
Binary(bool value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:73:21: error: ‘uint8_t’ has not been declared
Binary(bool value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:79:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::Binary;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:80:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::BinaryInput;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:81:15: error: ‘EventBinaryVariation’ does not name a type
const static EventBinaryVariation DefaultEventVariation = EventBinaryVariation::Group2Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:82:15: error: ‘StaticBinaryVariation’ does not name a type
const static StaticBinaryVariation DefaultStaticVariation = StaticBinaryVariation::Group1Var2;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:85:10: error: ‘EventBinaryVariation’ does not name a type
typedef EventBinaryVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:86:10: error: ‘StaticBinaryVariation’ does not name a type
typedef StaticBinaryVariation StaticVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:94:49: error: ‘DoubleBit’ was not declared in this scope
class DoubleBitBinary : public TypedMeasurement<DoubleBit>
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:94:58: error: template argument 1 is invalid
class DoubleBitBinary : public TypedMeasurement<DoubleBit>
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:101:28: error: expected ‘)’ before ‘value’
DoubleBitBinary(DoubleBit value);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:103:26: error: expected ‘)’ before ‘quality’
DoubleBitBinary(uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:105:26: error: expected ‘)’ before ‘quality’
DoubleBitBinary(uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:107:28: error: expected ‘)’ before ‘value’
DoubleBitBinary(DoubleBit value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:109:28: error: expected ‘)’ before ‘value’
DoubleBitBinary(DoubleBit value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:113:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::DoubleBitBinary;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:114:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::DoubleBinaryInput;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:115:15: error: ‘EventDoubleBinaryVariation’ does not name a type
const static EventDoubleBinaryVariation DefaultEventVariation = EventDoubleBinaryVariation::Group4Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:116:15: error: ‘StaticDoubleBinaryVariation’ does not name a type
const static StaticDoubleBinaryVariation DefaultStaticVariation = StaticDoubleBinaryVariation::Group3Var2;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:118:10: error: ‘DoubleBit’ does not name a type
typedef DoubleBit ValueType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:119:10: error: ‘EventDoubleBinaryVariation’ does not name a type
typedef EventDoubleBinaryVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:120:10: error: ‘StaticDoubleBinaryVariation’ does not name a type
typedef StaticDoubleBinaryVariation StaticVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:125:15: error: ‘uint8_t’ does not name a type
static const uint8_t ValueMask = 0xC0;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:126:15: error: ‘uint8_t’ does not name a type
static const uint8_t QualityMask = 0x3F;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:128:9: error: ‘DoubleBit’ does not name a type
static DoubleBit GetValue(uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:130:9: error: ‘uint8_t’ does not name a type
static uint8_t GetQual(uint8_t quality, DoubleBit state);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:147:29: error: expected ‘)’ before ‘quality’
BinaryOutputStatus(uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:149:29: error: expected ‘)’ before ‘quality’
BinaryOutputStatus(uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:151:33: error: ‘uint8_t’ has not been declared
BinaryOutputStatus(bool value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:153:33: error: ‘uint8_t’ has not been declared
BinaryOutputStatus(bool value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:157:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::BinaryOutputStatus;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:158:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::BinaryOutputStatus;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:159:15: error: ‘EventBinaryOutputStatusVariation’ does not name a type
const static EventBinaryOutputStatusVariation DefaultEventVariation = EventBinaryOutputStatusVariation::Group11Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:160:15: error: ‘StaticBinaryOutputStatusVariation’ does not name a type
const static StaticBinaryOutputStatusVariation DefaultStaticVariation = StaticBinaryOutputStatusVariation::Group10Var2;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:163:10: error: ‘EventBinaryOutputStatusVariation’ does not name a type
typedef EventBinaryOutputStatusVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:164:10: error: ‘StaticBinaryOutputStatusVariation’ does not name a type
typedef StaticBinaryOutputStatusVariation StaticVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:181:23: error: ‘uint8_t’ has not been declared
Analog(double value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:183:23: error: ‘uint8_t’ has not been declared
Analog(double value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:187:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::Analog;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:188:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::AnalogInput;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:189:15: error: ‘EventAnalogVariation’ does not name a type
const static EventAnalogVariation DefaultEventVariation = EventAnalogVariation::Group32Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:190:15: error: ‘StaticAnalogVariation’ does not name a type
const static StaticAnalogVariation DefaultStaticVariation = StaticAnalogVariation::Group30Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:193:10: error: ‘EventAnalogVariation’ does not name a type
typedef EventAnalogVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:194:10: error: ‘StaticAnalogVariation’ does not name a type
typedef StaticAnalogVariation StaticVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:202:41: error: ‘uint32_t’ was not declared in this scope
class Counter : public TypedMeasurement<uint32_t>
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:202:49: error: template argument 1 is invalid
class Counter : public TypedMeasurement<uint32_t>
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:208:19: error: expected ‘)’ before ‘value’
Counter(uint32_t value);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:210:19: error: expected ‘)’ before ‘value’
Counter(uint32_t value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:212:19: error: expected ‘)’ before ‘value’
Counter(uint32_t value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:214:40: error: ‘uint32_t’ has not been declared
bool IsEvent(const Counter& newValue, uint32_t aDeadband) const;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:216:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::Counter;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:217:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::Counter;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:218:15: error: ‘EventCounterVariation’ does not name a type
const static EventCounterVariation DefaultEventVariation = EventCounterVariation::Group22Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:219:15: error: ‘StaticCounterVariation’ does not name a type
const static StaticCounterVariation DefaultStaticVariation = StaticCounterVariation::Group20Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:221:10: error: ‘uint32_t’ does not name a type
typedef uint32_t ValueType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:222:10: error: ‘EventCounterVariation’ does not name a type
typedef EventCounterVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:223:10: error: ‘StaticCounterVariation’ does not name a type
typedef StaticCounterVariation StaticVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:224:36: error: ‘uint32_t’ was not declared in this scope
typedef DeadbandMetadata<Counter, uint32_t> MetadataType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:224:44: error: template argument 2 is invalid
typedef DeadbandMetadata<Counter, uint32_t> MetadataType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:230:47: error: ‘uint32_t’ was not declared in this scope
class FrozenCounter : public TypedMeasurement<uint32_t>
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:230:55: error: template argument 1 is invalid
class FrozenCounter : public TypedMeasurement<uint32_t>
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:236:25: error: expected ‘)’ before ‘value’
FrozenCounter(uint32_t value);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:238:25: error: expected ‘)’ before ‘value’
FrozenCounter(uint32_t value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:240:25: error: expected ‘)’ before ‘value’
FrozenCounter(uint32_t value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:242:46: error: ‘uint32_t’ has not been declared
bool IsEvent(const FrozenCounter& newValue, uint32_t aDeadband) const;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:244:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::FrozenCounter;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:245:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::FrozenCounter;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:246:15: error: ‘EventFrozenCounterVariation’ does not name a type
const static EventFrozenCounterVariation DefaultEventVariation = EventFrozenCounterVariation::Group23Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:247:15: error: ‘StaticFrozenCounterVariation’ does not name a type
const static StaticFrozenCounterVariation DefaultStaticVariation = StaticFrozenCounterVariation::Group21Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:249:10: error: ‘uint32_t’ does not name a type
typedef uint32_t ValueType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:250:10: error: ‘EventFrozenCounterVariation’ does not name a type
typedef EventFrozenCounterVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:251:10: error: ‘StaticFrozenCounterVariation’ does not name a type
typedef StaticFrozenCounterVariation StaticVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:252:42: error: ‘uint32_t’ was not declared in this scope
typedef DeadbandMetadata<FrozenCounter, uint32_t> MetadataType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:252:50: error: template argument 2 is invalid
typedef DeadbandMetadata<FrozenCounter, uint32_t> MetadataType;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:267:35: error: ‘uint8_t’ has not been declared
AnalogOutputStatus(double value, uint8_t quality);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:269:35: error: ‘uint8_t’ has not been declared
AnalogOutputStatus(double value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:273:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::AnalogOutputStatus;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:274:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::AnalogOutputStatus;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:275:15: error: ‘EventAnalogOutputStatusVariation’ does not name a type
const static EventAnalogOutputStatusVariation DefaultEventVariation = EventAnalogOutputStatusVariation::Group42Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:276:15: error: ‘StaticAnalogOutputStatusVariation’ does not name a type
const static StaticAnalogOutputStatusVariation DefaultStaticVariation = StaticAnalogOutputStatusVariation::Group40Var1;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:279:10: error: ‘EventAnalogOutputStatusVariation’ does not name a type
typedef EventAnalogOutputStatusVariation EventVariation;
^
/usr/local/include/opendnp3/app/MeasurementTypes.h:280:10: error: ‘StaticAnalogOutputStatusVariation’ does not name a type
typedef StaticAnalogOutputStatusVariation StaticVariation;
^
In file included from /usr/local/include/opendnp3/app/TimeAndInterval.h:24:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:27,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/IntervalUnits.h:31:12: error: use of enum ‘IntervalUnits’ without previous declaration
enum class IntervalUnits : uint8_t
^
/usr/local/include/opendnp3/gen/IntervalUnits.h:31:26: error: expected unqualified-id before ‘:’ token
enum class IntervalUnits : uint8_t
^
In file included from /usr/local/include/opendnp3/app/TimeAndInterval.h:24:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:27,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/IntervalUnits.h:59:1: error: ‘uint8_t’ does not name a type
uint8_t IntervalUnitsToType(IntervalUnits arg);
^
/usr/local/include/opendnp3/gen/IntervalUnits.h:60:1: error: ‘IntervalUnits’ does not name a type
IntervalUnits IntervalUnitsFromType(uint8_t arg);
^
/usr/local/include/opendnp3/gen/IntervalUnits.h:61:35: error: ‘IntervalUnits’ was not declared in this scope
char const* IntervalUnitsToString(IntervalUnits arg);
^
In file included from /usr/local/include/opendnp3/app/TimeAndInterval.h:25:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:27,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticTimeAndIntervalVariation.h:28:12: error: use of enum ‘StaticTimeAndIntervalVariation’ without previous declaration
enum class StaticTimeAndIntervalVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticTimeAndIntervalVariation.h:28:43: error: expected unqualified-id before ‘:’ token
enum class StaticTimeAndIntervalVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:27:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/TimeAndInterval.h:46:32: error: ‘uint32_t’ has not been declared
TimeAndInterval(DNPTime time, uint32_t interval, uint8_t units);
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:46:51: error: ‘uint8_t’ has not been declared
TimeAndInterval(DNPTime time, uint32_t interval, uint8_t units);
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:48:32: error: ‘uint32_t’ has not been declared
TimeAndInterval(DNPTime time, uint32_t interval, IntervalUnits units);
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:48:51: error: ‘IntervalUnits’ has not been declared
TimeAndInterval(DNPTime time, uint32_t interval, IntervalUnits units);
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:48:2: error: ‘opendnp3::TimeAndInterval::TimeAndInterval(opendnp3::DNPTime, int, int)’ cannot be overloaded
TimeAndInterval(DNPTime time, uint32_t interval, IntervalUnits units);
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:46:2: error: with ‘opendnp3::TimeAndInterval::TimeAndInterval(opendnp3::DNPTime, int, int)’
TimeAndInterval(DNPTime time, uint32_t interval, uint8_t units);
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:50:2: error: ‘IntervalUnits’ does not name a type
IntervalUnits GetUnitsEnum() const;
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:53:2: error: ‘uint32_t’ does not name a type
uint32_t interval;
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:54:2: error: ‘uint8_t’ does not name a type
uint8_t units;
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:56:15: error: ‘StaticTypeBitmask’ does not name a type
const static StaticTypeBitmask StaticTypeEnum = StaticTypeBitmask::TimeAndInterval;
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:57:15: error: ‘StaticTimeAndIntervalVariation’ does not name a type
const static StaticTimeAndIntervalVariation DefaultStaticVariation = StaticTimeAndIntervalVariation::Group50Var4;
^
/usr/local/include/opendnp3/app/TimeAndInterval.h:59:10: error: ‘StaticTimeAndIntervalVariation’ does not name a type
typedef StaticTimeAndIntervalVariation StaticVariation;
^
In file included from /usr/local/include/opendnp3/app/BinaryCommandEvent.h:44:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:28,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/CommandStatus.h:32:12: error: use of enum ‘CommandStatus’ without previous declaration
enum class CommandStatus : uint8_t
^
/usr/local/include/opendnp3/gen/CommandStatus.h:32:26: error: expected unqualified-id before ‘:’ token
enum class CommandStatus : uint8_t
^
In file included from /usr/local/include/opendnp3/app/BinaryCommandEvent.h:44:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:28,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/CommandStatus.h:78:1: error: ‘uint8_t’ does not name a type
uint8_t CommandStatusToType(CommandStatus arg);
^
/usr/local/include/opendnp3/gen/CommandStatus.h:79:1: error: ‘CommandStatus’ does not name a type
CommandStatus CommandStatusFromType(uint8_t arg);
^
/usr/local/include/opendnp3/gen/CommandStatus.h:80:35: error: ‘CommandStatus’ was not declared in this scope
char const* CommandStatusToString(CommandStatus arg);
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:28:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:60:29: error: expected ‘)’ before ‘flags’
BinaryCommandEvent(uint8_t flags);
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:62:29: error: expected ‘)’ before ‘flags’
BinaryCommandEvent(uint8_t flags, DNPTime time);
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:64:33: error: ‘CommandStatus’ has not been declared
BinaryCommandEvent(bool value, CommandStatus status);
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:66:33: error: ‘CommandStatus’ has not been declared
BinaryCommandEvent(bool value, CommandStatus status, DNPTime time);
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:69:2: error: ‘CommandStatus’ does not name a type
CommandStatus status;
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:72:2: error: ‘uint8_t’ does not name a type
uint8_t GetFlags() const;
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:78:15: error: ‘uint8_t’ does not name a type
static const uint8_t ValueMask = 0x80;
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:79:15: error: ‘uint8_t’ does not name a type
static const uint8_t StatusMask = 0x7F;
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:81:32: error: ‘uint8_t’ has not been declared
static bool GetValueFromFlags(uint8_t flags);
^
/usr/local/include/opendnp3/app/BinaryCommandEvent.h:82:9: error: ‘CommandStatus’ does not name a type
static CommandStatus GetStatusFromFlags(uint8_t flags);
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:29:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/AnalogCommandEvent.h:40:35: error: ‘CommandStatus’ has not been declared
AnalogCommandEvent(double value, CommandStatus status);
^
/usr/local/include/opendnp3/app/AnalogCommandEvent.h:42:35: error: ‘CommandStatus’ has not been declared
AnalogCommandEvent(double value, CommandStatus status, DNPTime time);
^
/usr/local/include/opendnp3/app/AnalogCommandEvent.h:45:2: error: ‘CommandStatus’ does not name a type
CommandStatus status;
^
In file included from /usr/local/include/opendnp3/app/OctetData.h:26:0,
from /usr/local/include/opendnp3/app/OctetString.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:30,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/container/RSlice.h:37:31: error: ‘uint32_t’ was not declared in this scope
class RSlice : public HasSize<uint32_t>
^
/usr/local/include/openpal/container/RSlice.h:37:39: error: template argument 1 is invalid
class RSlice : public HasSize<uint32_t>
^
/usr/local/include/openpal/container/RSlice.h:46:17: error: expected ‘)’ before ‘const’
RSlice(uint8_t const* pBuffer, uint32_t size);
^
/usr/local/include/openpal/container/RSlice.h:52:14: error: ‘uint32_t’ has not been declared
RSlice Take(uint32_t count) const;
^
/usr/local/include/openpal/container/RSlice.h:54:14: error: ‘uint32_t’ has not been declared
RSlice Skip(uint32_t count) const;
^
/usr/local/include/openpal/container/RSlice.h:58:15: error: ‘uint32_t’ has not been declared
void Advance(uint32_t count);
^
/usr/local/include/openpal/container/RSlice.h:60:11: error: ‘uint8_t’ does not name a type
operator uint8_t const* () const
^
/usr/local/include/openpal/container/RSlice.h:66:2: error: ‘uint8_t’ does not name a type
uint8_t const* pBuffer;
^
In file included from /usr/local/include/openpal/container/StaticBuffer.h:24:0,
from /usr/local/include/opendnp3/app/OctetData.h:27,
from /usr/local/include/opendnp3/app/OctetString.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:30,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/container/WSlice.h:37:31: error: ‘uint32_t’ was not declared in this scope
class WSlice : public HasSize<uint32_t>
^
/usr/local/include/openpal/container/WSlice.h:37:39: error: template argument 1 is invalid
class WSlice : public HasSize<uint32_t>
^
/usr/local/include/openpal/container/WSlice.h:43:16: error: ‘uint8_t’ has not been declared
void SetAllTo(uint8_t value);
^
/usr/local/include/openpal/container/WSlice.h:46:16: error: expected ‘)’ before ‘*’ token
WSlice(uint8_t* pBuffer, uint32_t size);
^
/usr/local/include/openpal/container/WSlice.h:50:2: error: ‘uint32_t’ does not name a type
uint32_t Advance(uint32_t count);
^
/usr/local/include/openpal/container/WSlice.h:52:14: error: ‘uint32_t’ has not been declared
WSlice Skip(uint32_t count) const;
^
/usr/local/include/openpal/container/WSlice.h:56:11: error: ‘uint8_t’ does not name a type
operator uint8_t* ()
^
/usr/local/include/openpal/container/WSlice.h:61:11: error: ‘uint8_t’ does not name a type
operator uint8_t const* () const
^
/usr/local/include/openpal/container/WSlice.h:68:2: error: ‘uint8_t’ does not name a type
uint8_t* pBuffer;
^
In file included from /usr/local/include/opendnp3/app/OctetData.h:27:0,
from /usr/local/include/opendnp3/app/OctetString.h:24,
from /usr/local/include/opendnp3/master/ISOEHandler.h:30,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/container/StaticBuffer.h:33:11: error: ‘uint32_t’ has not been declared
template <uint32_t SIZE>
^
/usr/local/include/openpal/container/StaticBuffer.h:49:18: error: ‘uint32_t’ has not been declared
RSlice ToRSlice(uint32_t maxSize) const
^
/usr/local/include/openpal/container/StaticBuffer.h:59:19: error: ‘uint32_t’ has not been declared
WSlice GetWSlice(uint32_t maxSize)
^
/usr/local/include/openpal/container/StaticBuffer.h:64:8: error: ‘uint8_t’ does not name a type
const uint8_t* operator()() const
^
/usr/local/include/openpal/container/StaticBuffer.h:69:2: error: ‘uint8_t’ does not name a type
uint8_t* operator()()
^
/usr/local/include/openpal/container/StaticBuffer.h:74:2: error: ‘uint32_t’ does not name a type
uint32_t Size() const
^
/usr/local/include/openpal/container/StaticBuffer.h:80:2: error: ‘uint8_t’ does not name a type
uint8_t buffer[SIZE];
^
/usr/local/include/openpal/container/StaticBuffer.h: In member function ‘openpal::RSlice openpal::StaticBuffer<SIZE>::ToRSlice() const’:
/usr/local/include/openpal/container/StaticBuffer.h:46:17: error: ‘buffer’ was not declared in this scope
return RSlice(buffer, SIZE);
^
/usr/local/include/openpal/container/StaticBuffer.h: In member function ‘openpal::RSlice openpal::StaticBuffer<SIZE>::ToRSlice(int) const’:
/usr/local/include/openpal/container/StaticBuffer.h:51:17: error: ‘buffer’ was not declared in this scope
return RSlice(buffer, openpal::Min(SIZE, maxSize));
^
/usr/local/include/openpal/container/StaticBuffer.h: In member function ‘openpal::WSlice openpal::StaticBuffer<SIZE>::GetWSlice()’:
/usr/local/include/openpal/container/StaticBuffer.h:56:17: error: ‘buffer’ was not declared in this scope
return WSlice(buffer, SIZE);
^
/usr/local/include/openpal/container/StaticBuffer.h: In member function ‘openpal::WSlice openpal::StaticBuffer<SIZE>::GetWSlice(int)’:
/usr/local/include/openpal/container/StaticBuffer.h:61:17: error: ‘buffer’ was not declared in this scope
return WSlice(buffer, openpal::Min(SIZE, maxSize));
^
In file included from /usr/local/include/opendnp3/app/OctetString.h:24:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:30,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/OctetData.h: At global scope:
/usr/local/include/opendnp3/app/OctetData.h:39:15: error: ‘uint8_t’ does not name a type
const static uint8_t MAX_SIZE = 255;
^
/usr/local/include/opendnp3/app/OctetData.h:50:24: error: ‘MAX_SIZE’ was not declared in this scope
openpal::StaticBuffer<MAX_SIZE> buffer;
^
/usr/local/include/opendnp3/app/OctetData.h:50:32: error: template argument 1 is invalid
openpal::StaticBuffer<MAX_SIZE> buffer;
^
/usr/local/include/opendnp3/app/OctetData.h:51:2: error: ‘uint8_t’ does not name a type
uint8_t size;
^
In file included from /usr/local/include/opendnp3/app/SecurityStat.h:28:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:31,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/StaticSecurityStatVariation.h:28:12: error: use of enum ‘StaticSecurityStatVariation’ without previous declaration
enum class StaticSecurityStatVariation : uint8_t
^
/usr/local/include/opendnp3/gen/StaticSecurityStatVariation.h:28:40: error: expected unqualified-id before ‘:’ token
enum class StaticSecurityStatVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/app/SecurityStat.h:29:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:31,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventSecurityStatVariation.h:28:12: error: use of enum ‘EventSecurityStatVariation’ without previous declaration
enum class EventSecurityStatVariation : uint8_t
^
/usr/local/include/opendnp3/gen/EventSecurityStatVariation.h:28:39: error: expected unqualified-id before ‘:’ token
enum class EventSecurityStatVariation : uint8_t
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:31:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/SecurityStat.h:48:3: error: ‘uint16_t’ does not name a type
uint16_t assocId;
^
/usr/local/include/opendnp3/app/SecurityStat.h:49:3: error: ‘uint32_t’ does not name a type
uint32_t count;
^
/usr/local/include/opendnp3/app/SecurityStat.h:54:28: error: ‘uint8_t’ has not been declared
SecurityStat(Value value, uint8_t quality, DNPTime time);
^
/usr/local/include/opendnp3/app/SecurityStat.h:56:23: error: expected ‘)’ before ‘quality’
SecurityStat(uint8_t quality, uint16_t assocId, uint32_t count);
^
/usr/local/include/opendnp3/app/SecurityStat.h:58:23: error: expected ‘)’ before ‘quality’
SecurityStat(uint8_t quality, uint16_t assocId, uint32_t count, DNPTime time);
^
/usr/local/include/opendnp3/app/SecurityStat.h:60:45: error: ‘uint32_t’ has not been declared
bool IsEvent(const SecurityStat& newValue, uint32_t deadband) const;
^
/usr/local/include/opendnp3/app/SecurityStat.h:62:2: error: ‘uint8_t’ does not name a type
uint8_t quality; // bitfield that stores type specific quality flags
^
/usr/local/include/opendnp3/app/SecurityStat.h:66:15: error: ‘EventType’ does not name a type
const static EventType EventTypeEnum = EventType::SecurityStat;
^
/usr/local/include/opendnp3/app/SecurityStat.h:68:15: error: ‘EventSecurityStatVariation’ does not name a type
const static EventSecurityStatVariation DefaultEventVariation = EventSecurityStatVariation::Group122Var1;
^
/usr/local/include/opendnp3/app/SecurityStat.h:69:15: error: ‘StaticSecurityStatVariation’ does not name a type
const static StaticSecurityStatVariation DefaultStaticVariation = StaticSecurityStatVariation::Group121Var1;
^
/usr/local/include/opendnp3/app/SecurityStat.h:72:10: error: ‘EventSecurityStatVariation’ does not name a type
typedef EventSecurityStatVariation EventVariation;
^
/usr/local/include/opendnp3/app/SecurityStat.h:73:10: error: ‘StaticSecurityStatVariation’ does not name a type
typedef StaticSecurityStatVariation StaticVariation;
^
/usr/local/include/opendnp3/app/SecurityStat.h:74:41: error: ‘uint32_t’ was not declared in this scope
typedef DeadbandMetadata<SecurityStat, uint32_t> MetadataType;
^
/usr/local/include/opendnp3/app/SecurityStat.h:74:49: error: template argument 2 is invalid
typedef DeadbandMetadata<SecurityStat, uint32_t> MetadataType;
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:33:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/Indexed.h:36:27: error: ‘uint16_t’ has not been declared
Indexed(const T& value_, uint16_t index_) :
^
/usr/local/include/opendnp3/app/Indexed.h:45:2: error: ‘uint16_t’ does not name a type
uint16_t index;
^
/usr/local/include/opendnp3/app/Indexed.h: In constructor ‘opendnp3::Indexed<T>::Indexed(const T&, int)’:
/usr/local/include/opendnp3/app/Indexed.h:38:3: error: class ‘opendnp3::Indexed<T>’ does not have any field named ‘index’
index(index_)
^
/usr/local/include/opendnp3/app/Indexed.h: In constructor ‘opendnp3::Indexed<T>::Indexed()’:
/usr/local/include/opendnp3/app/Indexed.h:41:22: error: class ‘opendnp3::Indexed<T>’ does not have any field named ‘index’
Indexed(): value(), index(0)
^
/usr/local/include/opendnp3/app/Indexed.h: At global scope:
/usr/local/include/opendnp3/app/Indexed.h:49:38: error: ‘uint16_t’ has not been declared
Indexed<T> WithIndex(const T& value, uint16_t index)
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:34:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/parsing/ICollection.h:73:10: error: ‘uint32_t’ does not name a type
virtual uint32_t Count() const = 0;
^
/usr/local/include/opendnp3/app/parsing/ICollection.h: In member function ‘bool opendnp3::ICollection<T>::ReadOnlyValue(T&) const’:
/usr/local/include/opendnp3/app/parsing/ICollection.h:97:9: error: ‘assignValue’ does not name a type
auto assignValue = [&value](const T & item)
^
/usr/local/include/opendnp3/app/parsing/ICollection.h:101:22: error: ‘assignValue’ was not declared in this scope
this->ForeachItem(assignValue);
^
In file included from /usr/local/include/opendnp3/master/HeaderInfo.h:24:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:36,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/QualifierCode.h: At global scope:
/usr/local/include/opendnp3/gen/QualifierCode.h:31:12: error: use of enum ‘QualifierCode’ without previous declaration
enum class QualifierCode : uint8_t
^
/usr/local/include/opendnp3/gen/QualifierCode.h:31:26: error: expected unqualified-id before ‘:’ token
enum class QualifierCode : uint8_t
^
/usr/local/include/opendnp3/gen/QualifierCode.h:44:1: error: ‘uint8_t’ does not name a type
uint8_t QualifierCodeToType(QualifierCode arg);
^
/usr/local/include/opendnp3/gen/QualifierCode.h:45:1: error: ‘QualifierCode’ does not name a type
QualifierCode QualifierCodeFromType(uint8_t arg);
^
/usr/local/include/opendnp3/gen/QualifierCode.h:46:35: error: ‘QualifierCode’ was not declared in this scope
char const* QualifierCodeToString(QualifierCode arg);
^
In file included from /usr/local/include/opendnp3/master/HeaderInfo.h:25:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:36,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/TimestampMode.h:31:12: error: use of enum ‘TimestampMode’ without previous declaration
enum class TimestampMode : uint8_t
^
/usr/local/include/opendnp3/gen/TimestampMode.h:31:26: error: expected unqualified-id before ‘:’ token
enum class TimestampMode : uint8_t
^
In file included from /usr/local/include/opendnp3/master/HeaderInfo.h:26:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:36,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/GroupVariation.h:31:12: error: use of enum ‘GroupVariation’ without previous declaration
enum class GroupVariation : uint16_t
^
/usr/local/include/opendnp3/gen/GroupVariation.h:31:27: error: expected unqualified-id before ‘:’ token
enum class GroupVariation : uint16_t
^
/usr/local/include/opendnp3/gen/GroupVariation.h:168:1: error: ‘uint16_t’ does not name a type
uint16_t GroupVariationToType(GroupVariation arg);
^
/usr/local/include/opendnp3/gen/GroupVariation.h:169:1: error: ‘GroupVariation’ does not name a type
GroupVariation GroupVariationFromType(uint16_t arg);
^
/usr/local/include/opendnp3/gen/GroupVariation.h:170:36: error: ‘GroupVariation’ was not declared in this scope
char const* GroupVariationToString(GroupVariation arg);
^
In file included from /usr/local/include/opendnp3/master/HeaderInfo.h:28:0,
from /usr/local/include/opendnp3/master/ISOEHandler.h:36,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/Attributes.h:28:22: error: ‘GroupVariation’ was not declared in this scope
bool HasAbsoluteTime(GroupVariation gv);
^
/usr/local/include/opendnp3/gen/Attributes.h:29:22: error: ‘GroupVariation’ was not declared in this scope
bool HasRelativeTime(GroupVariation gv);
^
/usr/local/include/opendnp3/gen/Attributes.h:30:15: error: ‘GroupVariation’ was not declared in this scope
bool HasFlags(GroupVariation gv);
^
/usr/local/include/opendnp3/gen/Attributes.h:31:14: error: ‘GroupVariation’ was not declared in this scope
bool IsEvent(GroupVariation gv);
^
In file included from /usr/local/include/opendnp3/master/ISOEHandler.h:36:0,
from /usr/local/include/asiodnp3/IChannel.h:28,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/HeaderInfo.h:51:21: error: expected ‘)’ before ‘gv_’
GroupVariation gv_,
^
/usr/local/include/opendnp3/master/HeaderInfo.h:65:2: error: ‘GroupVariation’ does not name a type
GroupVariation gv;
^
/usr/local/include/opendnp3/master/HeaderInfo.h:67:2: error: ‘QualifierCode’ does not name a type
QualifierCode qualifier;
^
/usr/local/include/opendnp3/master/HeaderInfo.h:69:2: error: ‘TimestampMode’ does not name a type
TimestampMode tsmode;
^
/usr/local/include/opendnp3/master/HeaderInfo.h:75:2: error: ‘uint32_t’ does not name a type
uint32_t headerIndex;
^
/usr/local/include/opendnp3/master/HeaderInfo.h: In constructor ‘opendnp3::HeaderInfo::HeaderInfo()’:
/usr/local/include/opendnp3/master/HeaderInfo.h:42:3: error: class ‘opendnp3::HeaderInfo’ does not have any field named ‘gv’
gv(GroupVariation::UNKNOWN),
^
/usr/local/include/opendnp3/master/HeaderInfo.h:42:6: error: ‘GroupVariation’ has not been declared
gv(GroupVariation::UNKNOWN),
^
/usr/local/include/opendnp3/master/HeaderInfo.h:43:3: error: class ‘opendnp3::HeaderInfo’ does not have any field named ‘qualifier’
qualifier(QualifierCode::UNDEFINED),
^
/usr/local/include/opendnp3/master/HeaderInfo.h:43:13: error: ‘QualifierCode’ has not been declared
qualifier(QualifierCode::UNDEFINED),
^
/usr/local/include/opendnp3/master/HeaderInfo.h:44:3: error: class ‘opendnp3::HeaderInfo’ does not have any field named ‘tsmode’
tsmode(TimestampMode::INVALID),
^
/usr/local/include/opendnp3/master/HeaderInfo.h:44:10: error: ‘TimestampMode’ has not been declared
tsmode(TimestampMode::INVALID),
^
/usr/local/include/opendnp3/master/HeaderInfo.h:47:3: error: class ‘opendnp3::HeaderInfo’ does not have any field named ‘headerIndex’
headerIndex(0)
^
In file included from /usr/local/include/asiodnp3/IChannel.h:28:0,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/ISOEHandler.h: At global scope:
/usr/local/include/opendnp3/master/ISOEHandler.h:53:79: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<Binary>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:54:88: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<DoubleBitBinary>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:55:79: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<Analog>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:56:80: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<Counter>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:57:86: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<FrozenCounter>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:58:91: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<BinaryOutputStatus>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:59:91: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<AnalogOutputStatus>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:60:84: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<OctetString>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:61:88: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<TimeAndInterval>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:62:91: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<BinaryCommandEvent>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:63:91: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<AnalogCommandEvent>>& values) = 0;
^
/usr/local/include/opendnp3/master/ISOEHandler.h:64:85: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const HeaderInfo& info, const ICollection<Indexed<SecurityStat>>& values) = 0;
^
In file included from /usr/local/include/openpal/executor/IUTCTimeSource.h:24:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:24,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/UTCTimestamp.h:39:24: error: expected ‘)’ before ‘msSinceEpoch_’
UTCTimestamp(uint64_t msSinceEpoch_) : msSinceEpoch(msSinceEpoch_)
^
/usr/local/include/openpal/executor/UTCTimestamp.h:42:2: error: ‘uint64_t’ does not name a type
uint64_t msSinceEpoch;
^
/usr/local/include/openpal/executor/UTCTimestamp.h: In constructor ‘openpal::UTCTimestamp::UTCTimestamp()’:
/usr/local/include/openpal/executor/UTCTimestamp.h:36:19: error: class ‘openpal::UTCTimestamp’ does not have any field named ‘msSinceEpoch’
UTCTimestamp() : msSinceEpoch(0)
^
In file included from /usr/local/include/opendnp3/master/IMasterApplication.h:24:0,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/IUTCTimeSource.h: At global scope:
/usr/local/include/openpal/executor/IUTCTimeSource.h:48:29: error: expected ‘)’ before ‘time_’
FixedUTCTimeSource(int64_t time_): time(time_)
^
/usr/local/include/openpal/executor/IUTCTimeSource.h:56:2: error: ‘int64_t’ does not name a type
int64_t time;
^
/usr/local/include/openpal/executor/IUTCTimeSource.h: In member function ‘virtual openpal::UTCTimestamp openpal::FixedUTCTimeSource::Now()’:
/usr/local/include/openpal/executor/IUTCTimeSource.h:53:24: error: ‘time’ was not declared in this scope
return UTCTimestamp (time);
^
In file included from /usr/local/include/opendnp3/master/TaskInfo.h:26:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:26,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/MasterTaskType.h: At global scope:
/usr/local/include/opendnp3/gen/MasterTaskType.h:31:12: error: use of enum ‘MasterTaskType’ without previous declaration
enum class MasterTaskType : uint8_t
^
/usr/local/include/opendnp3/gen/MasterTaskType.h:31:27: error: expected unqualified-id before ‘:’ token
enum class MasterTaskType : uint8_t
^
/usr/local/include/opendnp3/gen/MasterTaskType.h:44:36: error: ‘MasterTaskType’ was not declared in this scope
char const* MasterTaskTypeToString(MasterTaskType arg);
^
In file included from /usr/local/include/opendnp3/master/TaskInfo.h:27:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:26,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/TaskCompletion.h:31:12: error: use of enum ‘TaskCompletion’ without previous declaration
enum class TaskCompletion : uint8_t
^
/usr/local/include/opendnp3/gen/TaskCompletion.h:31:27: error: expected unqualified-id before ‘:’ token
enum class TaskCompletion : uint8_t
^
In file included from /usr/local/include/opendnp3/master/TaskInfo.h:27:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:26,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/TaskCompletion.h:53:36: error: ‘TaskCompletion’ was not declared in this scope
char const* TaskCompletionToString(TaskCompletion arg);
^
In file included from /usr/local/include/opendnp3/master/IMasterApplication.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/TaskInfo.h:42:21: error: expected ‘)’ before ‘type_’
MasterTaskType type_,
^
/usr/local/include/opendnp3/master/TaskInfo.h:51:2: error: ‘MasterTaskType’ does not name a type
MasterTaskType type;
^
/usr/local/include/opendnp3/master/TaskInfo.h:52:2: error: ‘TaskCompletion’ does not name a type
TaskCompletion result;
^
In file included from /usr/local/include/opendnp3/master/HeaderTypes.h:27:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:27,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/GroupVariationID.h:35:27: error: expected ‘)’ before ‘aGroup’
GroupVariationID(uint8_t aGroup, uint8_t aVariation):
^
/usr/local/include/opendnp3/app/GroupVariationID.h:42:2: error: ‘uint8_t’ does not name a type
uint8_t group;
^
/usr/local/include/opendnp3/app/GroupVariationID.h:43:2: error: ‘uint8_t’ does not name a type
uint8_t variation;
^
/usr/local/include/opendnp3/app/GroupVariationID.h: In constructor ‘opendnp3::GroupVariationID::GroupVariationID()’:
/usr/local/include/opendnp3/app/GroupVariationID.h:32:23: error: class ‘opendnp3::GroupVariationID’ does not have any field named ‘group’
GroupVariationID() : group(0xFF), variation(0xFF)
^
/usr/local/include/opendnp3/app/GroupVariationID.h:32:36: error: class ‘opendnp3::GroupVariationID’ does not have any field named ‘variation’
GroupVariationID() : group(0xFF), variation(0xFF)
^
In file included from /usr/local/include/opendnp3/master/IMasterApplication.h:27:0,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/HeaderTypes.h: At global scope:
/usr/local/include/opendnp3/master/HeaderTypes.h:37:12: error: use of enum ‘HeaderType’ without previous declaration
enum class HeaderType : uint8_t
^
/usr/local/include/opendnp3/master/HeaderTypes.h:37:23: error: expected unqualified-id before ‘:’ token
enum class HeaderType : uint8_t
^
/usr/local/include/opendnp3/master/HeaderTypes.h:70:17: error: ‘uint8_t’ was not declared in this scope
StartStopRange<uint8_t> range8;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:70:24: error: template argument 1 is invalid
StartStopRange<uint8_t> range8;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:71:17: error: ‘uint16_t’ was not declared in this scope
StartStopRange<uint16_t> range16;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:71:25: error: template argument 1 is invalid
StartStopRange<uint16_t> range16;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:72:8: error: ‘uint8_t’ was not declared in this scope
Count<uint8_t> count8;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:72:15: error: template argument 1 is invalid
Count<uint8_t> count8;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:73:8: error: ‘uint16_t’ was not declared in this scope
Count<uint16_t> count16;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:73:16: error: template argument 1 is invalid
Count<uint16_t> count16;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:88:27: error: ‘uint8_t’ has not been declared
static Header AllObjects(uint8_t group, uint8_t variation);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:88:42: error: ‘uint8_t’ has not been declared
static Header AllObjects(uint8_t group, uint8_t variation);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:93:23: error: ‘uint8_t’ has not been declared
static Header Range8(uint8_t group, uint8_t variation, uint8_t start, uint8_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:93:38: error: ‘uint8_t’ has not been declared
static Header Range8(uint8_t group, uint8_t variation, uint8_t start, uint8_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:93:57: error: ‘uint8_t’ has not been declared
static Header Range8(uint8_t group, uint8_t variation, uint8_t start, uint8_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:93:72: error: ‘uint8_t’ has not been declared
static Header Range8(uint8_t group, uint8_t variation, uint8_t start, uint8_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:98:24: error: ‘uint8_t’ has not been declared
static Header Range16(uint8_t group, uint8_t variation, uint16_t start, uint16_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:98:39: error: ‘uint8_t’ has not been declared
static Header Range16(uint8_t group, uint8_t variation, uint16_t start, uint16_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:98:58: error: ‘uint16_t’ has not been declared
static Header Range16(uint8_t group, uint8_t variation, uint16_t start, uint16_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:98:74: error: ‘uint16_t’ has not been declared
static Header Range16(uint8_t group, uint8_t variation, uint16_t start, uint16_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:103:23: error: ‘uint8_t’ has not been declared
static Header Count8(uint8_t group, uint8_t variation, uint8_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:103:38: error: ‘uint8_t’ has not been declared
static Header Count8(uint8_t group, uint8_t variation, uint8_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:103:57: error: ‘uint8_t’ has not been declared
static Header Count8(uint8_t group, uint8_t variation, uint8_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:108:24: error: ‘uint8_t’ has not been declared
static Header Count16(uint8_t group, uint8_t variation, uint16_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:108:39: error: ‘uint8_t’ has not been declared
static Header Count16(uint8_t group, uint8_t variation, uint16_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:108:58: error: ‘uint16_t’ has not been declared
static Header Count16(uint8_t group, uint8_t variation, uint16_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:116:2: error: ‘HeaderType’ does not name a type
HeaderType type;
^
/usr/local/include/opendnp3/master/HeaderTypes.h:119:17: error: expected ‘)’ before ‘group’
Header(uint8_t group, uint8_t var);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:121:17: error: expected ‘)’ before ‘group’
Header(uint8_t group, uint8_t var, uint8_t start, uint8_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:123:17: error: expected ‘)’ before ‘group’
Header(uint8_t group, uint8_t var, uint16_t start, uint16_t stop);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:125:17: error: expected ‘)’ before ‘group’
Header(uint8_t group, uint8_t var, uint8_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h:127:17: error: expected ‘)’ before ‘group’
Header(uint8_t group, uint8_t var, uint16_t count);
^
/usr/local/include/opendnp3/master/HeaderTypes.h: In constructor ‘opendnp3::Header::Header()’:
/usr/local/include/opendnp3/master/HeaderTypes.h:110:23: error: class ‘opendnp3::Header’ does not have any field named ‘type’
Header() : id(0, 0), type(HeaderType::AllObjects)
^
/usr/local/include/opendnp3/master/HeaderTypes.h:110:28: error: ‘HeaderType’ has not been declared
Header() : id(0, 0), type(HeaderType::AllObjects)
^
/usr/local/include/opendnp3/master/HeaderTypes.h:110:50: error: no matching function for call to ‘opendnp3::GroupVariationID::GroupVariationID(int, int)’
Header() : id(0, 0), type(HeaderType::AllObjects)
^
In file included from /usr/local/include/opendnp3/master/HeaderTypes.h:27:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:27,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/GroupVariationID.h:32:2: note: candidate: opendnp3::GroupVariationID::GroupVariationID()
GroupVariationID() : group(0xFF), variation(0xFF)
^
/usr/local/include/opendnp3/app/GroupVariationID.h:32:2: note: candidate expects 0 arguments, 2 provided
/usr/local/include/opendnp3/app/GroupVariationID.h:30:8: note: candidate: opendnp3::GroupVariationID::GroupVariationID(const opendnp3::GroupVariationID&)
struct GroupVariationID
^
/usr/local/include/opendnp3/app/GroupVariationID.h:30:8: note: candidate expects 1 argument, 2 provided
In file included from /usr/local/include/opendnp3/master/IMasterApplication.h:29:0,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/IINField.h: At global scope:
/usr/local/include/opendnp3/app/IINField.h:56:13: error: use of enum ‘LSBMask’ without previous declaration
enum class LSBMask : uint8_t
^
/usr/local/include/opendnp3/app/IINField.h:56:23: error: ‘uint8_t’ was not declared in this scope
enum class LSBMask : uint8_t
^
/usr/local/include/opendnp3/app/IINField.h:56:23: error: expected ‘;’ at end of member declaration
/usr/local/include/opendnp3/app/IINField.h:57:2: error: expected unqualified-id before ‘{’ token
{
^
/usr/local/include/opendnp3/app/IINField.h:68:13: error: use of enum ‘MSBMask’ without previous declaration
enum class MSBMask : uint8_t
^
/usr/local/include/opendnp3/app/IINField.h:68:23: error: ‘uint8_t’ was not declared in this scope
enum class MSBMask : uint8_t
^
/usr/local/include/opendnp3/app/IINField.h:68:23: error: expected ‘;’ at end of member declaration
/usr/local/include/opendnp3/app/IINField.h:69:2: error: expected unqualified-id before ‘{’ token
{
^
/usr/local/include/opendnp3/app/IINField.h:96:19: error: expected ‘)’ before ‘aLSB’
IINField(uint8_t aLSB, uint8_t aMSB) : LSB(aLSB), MSB(aMSB)
^
/usr/local/include/opendnp3/app/IINField.h:160:2: error: ‘uint8_t’ does not name a type
uint8_t LSB;
^
/usr/local/include/opendnp3/app/IINField.h:161:2: error: ‘uint8_t’ does not name a type
uint8_t MSB;
^
/usr/local/include/opendnp3/app/IINField.h:165:15: error: ‘uint8_t’ does not name a type
static const uint8_t REQUEST_ERROR_MASK;
^
/usr/local/include/opendnp3/app/IINField.h:167:18: error: ‘LSBMask’ has not been declared
inline bool Get(LSBMask bit) const
^
/usr/local/include/opendnp3/app/IINField.h:172:18: error: ‘MSBMask’ has not been declared
inline bool Get(MSBMask bit) const
^
/usr/local/include/opendnp3/app/IINField.h:172:14: error: ‘bool opendnp3::IINField::Get(int) const’ cannot be overloaded
inline bool Get(MSBMask bit) const
^
/usr/local/include/opendnp3/app/IINField.h:167:14: error: with ‘bool opendnp3::IINField::Get(int) const’
inline bool Get(LSBMask bit) const
^
/usr/local/include/opendnp3/app/IINField.h:177:18: error: ‘LSBMask’ has not been declared
inline void Set(LSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:181:18: error: ‘MSBMask’ has not been declared
inline void Set(MSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:181:14: error: ‘void opendnp3::IINField::Set(int)’ cannot be overloaded
inline void Set(MSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:177:14: error: with ‘void opendnp3::IINField::Set(int)’
inline void Set(LSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:186:20: error: ‘LSBMask’ has not been declared
inline void Clear(LSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:190:20: error: ‘MSBMask’ has not been declared
inline void Clear(MSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:190:14: error: ‘void opendnp3::IINField::Clear(int)’ cannot be overloaded
inline void Clear(MSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h:186:14: error: with ‘void opendnp3::IINField::Clear(int)’
inline void Clear(LSBMask bit)
^
/usr/local/include/opendnp3/app/IINField.h: In static member function ‘static opendnp3::IINField opendnp3::IINField::Empty()’:
/usr/local/include/opendnp3/app/IINField.h:88:23: error: no matching function for call to ‘opendnp3::IINField::IINField(int, int)’
return IINField(0, 0);
^
/usr/local/include/opendnp3/app/IINField.h:99:2: note: candidate: opendnp3::IINField::IINField()
IINField() : LSB(0), MSB(0)
^
/usr/local/include/opendnp3/app/IINField.h:99:2: note: candidate expects 0 arguments, 2 provided
/usr/local/include/opendnp3/app/IINField.h:91:2: note: candidate: opendnp3::IINField::IINField(opendnp3::IINBit)
IINField(IINBit bit) : LSB(0), MSB(0)
^
/usr/local/include/opendnp3/app/IINField.h:91:2: note: candidate expects 1 argument, 2 provided
/usr/local/include/opendnp3/app/IINField.h:51:7: note: candidate: opendnp3::IINField::IINField(const opendnp3::IINField&)
class IINField
^
/usr/local/include/opendnp3/app/IINField.h:51:7: note: candidate expects 1 argument, 2 provided
/usr/local/include/opendnp3/app/IINField.h: In constructor ‘opendnp3::IINField::IINField(opendnp3::IINBit)’:
/usr/local/include/opendnp3/app/IINField.h:91:25: error: class ‘opendnp3::IINField’ does not have any field named ‘LSB’
IINField(IINBit bit) : LSB(0), MSB(0)
^
/usr/local/include/opendnp3/app/IINField.h:91:33: error: class ‘opendnp3::IINField’ does not have any field named ‘MSB’
IINField(IINBit bit) : LSB(0), MSB(0)
^
/usr/local/include/opendnp3/app/IINField.h: In constructor ‘opendnp3::IINField::IINField()’:
/usr/local/include/opendnp3/app/IINField.h:99:15: error: class ‘opendnp3::IINField’ does not have any field named ‘LSB’
IINField() : LSB(0), MSB(0)
^
/usr/local/include/opendnp3/app/IINField.h:99:23: error: class ‘opendnp3::IINField’ does not have any field named ‘MSB’
IINField() : LSB(0), MSB(0)
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘bool opendnp3::IINField::Any() const’:
/usr/local/include/opendnp3/app/IINField.h:118:11: error: ‘LSB’ was not declared in this scope
return (LSB | MSB) != 0;
^
/usr/local/include/opendnp3/app/IINField.h:118:17: error: ‘MSB’ was not declared in this scope
return (LSB | MSB) != 0;
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘void opendnp3::IINField::Clear()’:
/usr/local/include/opendnp3/app/IINField.h:123:3: error: ‘LSB’ was not declared in this scope
LSB = MSB = 0;
^
/usr/local/include/opendnp3/app/IINField.h:123:9: error: ‘MSB’ was not declared in this scope
LSB = MSB = 0;
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘bool opendnp3::IINField::HasRequestError() const’:
/usr/local/include/opendnp3/app/IINField.h:128:14: error: ‘MSBMask’ has not been declared
return Get(MSBMask::REQUEST_ERROR_MASK);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘opendnp3::IINField opendnp3::IINField::operator|(const opendnp3::IINField&) const’:
/usr/local/include/opendnp3/app/IINField.h:133:19: error: ‘LSB’ was not declared in this scope
return IINField(LSB | aIIN.LSB, MSB | aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h:133:30: error: ‘const class opendnp3::IINField’ has no member named ‘LSB’
return IINField(LSB | aIIN.LSB, MSB | aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h:133:35: error: ‘MSB’ was not declared in this scope
return IINField(LSB | aIIN.LSB, MSB | aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h:133:46: error: ‘const class opendnp3::IINField’ has no member named ‘MSB’
return IINField(LSB | aIIN.LSB, MSB | aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘opendnp3::IINField& opendnp3::IINField::operator|=(const opendnp3::IINField&)’:
/usr/local/include/opendnp3/app/IINField.h:138:3: error: ‘MSB’ was not declared in this scope
MSB |= aIIN.MSB;
^
/usr/local/include/opendnp3/app/IINField.h:138:15: error: ‘const class opendnp3::IINField’ has no member named ‘MSB’
MSB |= aIIN.MSB;
^
/usr/local/include/opendnp3/app/IINField.h:139:3: error: ‘LSB’ was not declared in this scope
LSB |= aIIN.LSB;
^
/usr/local/include/opendnp3/app/IINField.h:139:15: error: ‘const class opendnp3::IINField’ has no member named ‘LSB’
LSB |= aIIN.LSB;
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘opendnp3::IINField opendnp3::IINField::operator&(const opendnp3::IINField&) const’:
/usr/local/include/opendnp3/app/IINField.h:145:19: error: ‘LSB’ was not declared in this scope
return IINField(LSB & aIIN.LSB, MSB & aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h:145:30: error: ‘const class opendnp3::IINField’ has no member named ‘LSB’
return IINField(LSB & aIIN.LSB, MSB & aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h:145:35: error: ‘MSB’ was not declared in this scope
return IINField(LSB & aIIN.LSB, MSB & aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h:145:46: error: ‘const class opendnp3::IINField’ has no member named ‘MSB’
return IINField(LSB & aIIN.LSB, MSB & aIIN.MSB);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘opendnp3::IINField& opendnp3::IINField::operator&=(const opendnp3::IINField&)’:
/usr/local/include/opendnp3/app/IINField.h:150:3: error: ‘MSB’ was not declared in this scope
MSB &= aIIN.MSB;
^
/usr/local/include/opendnp3/app/IINField.h:150:15: error: ‘const class opendnp3::IINField’ has no member named ‘MSB’
MSB &= aIIN.MSB;
^
/usr/local/include/opendnp3/app/IINField.h:151:3: error: ‘LSB’ was not declared in this scope
LSB &= aIIN.LSB;
^
/usr/local/include/opendnp3/app/IINField.h:151:15: error: ‘const class opendnp3::IINField’ has no member named ‘LSB’
LSB &= aIIN.LSB;
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘opendnp3::IINField opendnp3::IINField::operator~() const’:
/usr/local/include/opendnp3/app/IINField.h:157:20: error: ‘LSB’ was not declared in this scope
return IINField(~LSB, ~MSB);
^
/usr/local/include/opendnp3/app/IINField.h:157:26: error: ‘MSB’ was not declared in this scope
return IINField(~LSB, ~MSB);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘bool opendnp3::IINField::Get(int) const’:
/usr/local/include/opendnp3/app/IINField.h:169:11: error: ‘LSB’ was not declared in this scope
return (LSB & static_cast<uint8_t>(bit)) != 0;
^
/usr/local/include/opendnp3/app/IINField.h:169:29: error: ‘uint8_t’ does not name a type
return (LSB & static_cast<uint8_t>(bit)) != 0;
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘bool opendnp3::IINField::Get(int) const’:
/usr/local/include/opendnp3/app/IINField.h:174:11: error: ‘MSB’ was not declared in this scope
return (MSB & static_cast<uint8_t>(bit)) != 0;
^
/usr/local/include/opendnp3/app/IINField.h:174:29: error: ‘uint8_t’ does not name a type
return (MSB & static_cast<uint8_t>(bit)) != 0;
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘void opendnp3::IINField::Set(int)’:
/usr/local/include/opendnp3/app/IINField.h:179:3: error: ‘LSB’ was not declared in this scope
LSB |= static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h:179:22: error: ‘uint8_t’ does not name a type
LSB |= static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘void opendnp3::IINField::Set(int)’:
/usr/local/include/opendnp3/app/IINField.h:183:3: error: ‘MSB’ was not declared in this scope
MSB |= static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h:183:22: error: ‘uint8_t’ does not name a type
MSB |= static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘void opendnp3::IINField::Clear(int)’:
/usr/local/include/opendnp3/app/IINField.h:188:3: error: ‘LSB’ was not declared in this scope
LSB &= ~static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h:188:23: error: ‘uint8_t’ does not name a type
LSB &= ~static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h: In member function ‘void opendnp3::IINField::Clear(int)’:
/usr/local/include/opendnp3/app/IINField.h:192:3: error: ‘MSB’ was not declared in this scope
MSB &= ~static_cast<uint8_t>(bit);
^
/usr/local/include/opendnp3/app/IINField.h:192:23: error: ‘uint8_t’ does not name a type
MSB &= ~static_cast<uint8_t>(bit);
^
In file included from /usr/local/include/opendnp3/link/ILinkListener.h:25:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:30,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/LinkStatus.h: At global scope:
/usr/local/include/opendnp3/gen/LinkStatus.h:31:12: error: use of enum ‘LinkStatus’ without previous declaration
enum class LinkStatus : uint8_t
^
/usr/local/include/opendnp3/gen/LinkStatus.h:31:23: error: expected unqualified-id before ‘:’ token
enum class LinkStatus : uint8_t
^
/usr/local/include/opendnp3/gen/LinkStatus.h:39:32: error: ‘LinkStatus’ was not declared in this scope
char const* LinkStatusToString(LinkStatus arg);
^
In file included from /usr/local/include/opendnp3/master/IMasterApplication.h:30:0,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/link/ILinkListener.h:38:29: error: ‘LinkStatus’ has not been declared
virtual void OnStateChange(LinkStatus value) {}
^
In file included from /usr/local/include/asiodnp3/IChannel.h:29:0,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/IMasterApplication.h:40:14: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function<void(const Header&)> WriteHeaderFunT;
^
/usr/local/include/opendnp3/master/IMasterApplication.h:55:27: error: ‘MasterTaskType’ has not been declared
virtual void OnTaskStart(MasterTaskType type, TaskId id) {}
^
/usr/local/include/opendnp3/master/IMasterApplication.h:69:49: error: ‘WriteHeaderFunT’ does not name a type
virtual void ConfigureAssignClassRequest(const WriteHeaderFunT& fun) {}
^
In file included from /usr/local/include/opendnp3/outstation/OutstationParams.h:26:0,
from /usr/local/include/opendnp3/outstation/OutstationConfig.h:26,
from /usr/local/include/opendnp3/outstation/OutstationStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:31,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/IndexMode.h:31:12: error: use of enum ‘IndexMode’ without previous declaration
enum class IndexMode : uint8_t
^
/usr/local/include/opendnp3/gen/IndexMode.h:31:22: error: expected unqualified-id before ‘:’ token
enum class IndexMode : uint8_t
^
In file included from /usr/local/include/opendnp3/outstation/OutstationParams.h:30:0,
from /usr/local/include/opendnp3/outstation/OutstationConfig.h:26,
from /usr/local/include/opendnp3/outstation/OutstationStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:31,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:39:30: error: expected ‘)’ before ‘mask_’
StaticTypeBitField(uint16_t mask_) : mask(mask_)
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:47:13: error: ‘StaticTypeBitmask’ has not been declared
bool IsSet(StaticTypeBitmask type) const
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:52:28: error: ‘StaticTypeBitmask’ has not been declared
StaticTypeBitField Except(StaticTypeBitmask type) const
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:59:2: error: ‘uint16_t’ does not name a type
uint16_t mask;
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h: In constructor ‘opendnp3::StaticTypeBitField::StaticTypeBitField()’:
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:36:25: error: class ‘opendnp3::StaticTypeBitField’ does not have any field named ‘mask’
StaticTypeBitField() : mask(0)
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h: In static member function ‘static opendnp3::StaticTypeBitField opendnp3::StaticTypeBitField::AllTypes()’:
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:44:31: error: no matching function for call to ‘opendnp3::StaticTypeBitField::StaticTypeBitField(int)’
return StaticTypeBitField(~0);
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:36:2: note: candidate: opendnp3::StaticTypeBitField::StaticTypeBitField()
StaticTypeBitField() : mask(0)
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:36:2: note: candidate expects 0 arguments, 1 provided
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:34:8: note: candidate: opendnp3::StaticTypeBitField::StaticTypeBitField(const opendnp3::StaticTypeBitField&)
struct StaticTypeBitField
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:34:8: note: no known conversion for argument 1 from ‘int’ to ‘const opendnp3::StaticTypeBitField&’
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h: In member function ‘bool opendnp3::StaticTypeBitField::IsSet(int) const’:
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:49:11: error: ‘mask’ was not declared in this scope
return (mask & static_cast<uint16_t>(type)) != 0;
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:49:30: error: ‘uint16_t’ does not name a type
return (mask & static_cast<uint16_t>(type)) != 0;
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h: In member function ‘opendnp3::StaticTypeBitField opendnp3::StaticTypeBitField::Except(int) const’:
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:54:29: error: ‘mask’ was not declared in this scope
return StaticTypeBitField(mask & ~static_cast<uint16_t>(type));
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:54:49: error: ‘uint16_t’ was not declared in this scope
return StaticTypeBitField(mask & ~static_cast<uint16_t>(type));
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:54:28: error: expected primary-expression before ‘(’ token
return StaticTypeBitField(mask & ~static_cast<uint16_t>(type));
^
/usr/local/include/opendnp3/outstation/StaticTypeBitfield.h:54:49: error: ‘uint16_t’ does not name a type
return StaticTypeBitField(mask & ~static_cast<uint16_t>(type));
^
In file included from /usr/local/include/opendnp3/outstation/OutstationConfig.h:26:0,
from /usr/local/include/opendnp3/outstation/OutstationStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:31,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/OutstationParams.h: At global scope:
/usr/local/include/opendnp3/outstation/OutstationParams.h:43:2: error: ‘IndexMode’ does not name a type
IndexMode indexMode;
^
/usr/local/include/opendnp3/outstation/OutstationParams.h:46:2: error: ‘uint8_t’ does not name a type
uint8_t maxControlsPerRequest;
^
/usr/local/include/opendnp3/outstation/OutstationParams.h:61:2: error: ‘uint32_t’ does not name a type
uint32_t maxTxFragSize;
^
/usr/local/include/opendnp3/outstation/OutstationParams.h:64:2: error: ‘uint32_t’ does not name a type
uint32_t maxRxFragSize;
^
In file included from /usr/local/include/opendnp3/outstation/OutstationConfig.h:27:0,
from /usr/local/include/opendnp3/outstation/OutstationStackConfig.h:24,
from /usr/local/include/asiodnp3/IChannel.h:31,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:34:36: error: ‘uint16_t’ has not been declared
static EventBufferConfig AllTypes(uint16_t sizes);
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:36:2: error: ‘uint16_t’ does not name a type
uint16_t GetMaxEventsForType(EventType type) const;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:39:15: error: expected ‘)’ before ‘maxBinaryEvents_’
uint16_t maxBinaryEvents_ = 0,
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:49:2: error: ‘uint32_t’ does not name a type
uint32_t TotalEvents() const;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:52:2: error: ‘uint16_t’ does not name a type
uint16_t maxBinaryEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:55:2: error: ‘uint16_t’ does not name a type
uint16_t maxDoubleBinaryEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:58:2: error: ‘uint16_t’ does not name a type
uint16_t maxAnalogEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:61:2: error: ‘uint16_t’ does not name a type
uint16_t maxCounterEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:64:2: error: ‘uint16_t’ does not name a type
uint16_t maxFrozenCounterEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:67:2: error: ‘uint16_t’ does not name a type
uint16_t maxBinaryOutputStatusEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:70:2: error: ‘uint16_t’ does not name a type
uint16_t maxAnalogOutputStatusEvents;
^
/usr/local/include/opendnp3/outstation/EventBufferConfig.h:73:2: error: ‘uint16_t’ does not name a type
uint16_t maxSecurityStatisticEvents;
^
In file included from /usr/local/include/opendnp3/outstation/OutstationStackConfig.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:31,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:34:37: error: ‘uint16_t’ has not been declared
static DatabaseTemplate BinaryOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:39:43: error: ‘uint16_t’ has not been declared
static DatabaseTemplate DoubleBinaryOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:44:37: error: ‘uint16_t’ has not been declared
static DatabaseTemplate AnalogOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:49:38: error: ‘uint16_t’ has not been declared
static DatabaseTemplate CounterOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:54:44: error: ‘uint16_t’ has not been declared
static DatabaseTemplate FrozenCounterOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:59:49: error: ‘uint16_t’ has not been declared
static DatabaseTemplate BinaryOutputStatusOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:64:49: error: ‘uint16_t’ has not been declared
static DatabaseTemplate AnalogOutputStatusOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:69:46: error: ‘uint16_t’ has not been declared
static DatabaseTemplate TimeAndIntervalOnly(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:74:35: error: ‘uint16_t’ has not been declared
static DatabaseTemplate AllTypes(uint16_t count)
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:79:28: error: expected ‘)’ before ‘numBinary_’
DatabaseTemplate(uint16_t numBinary_ = 0,
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:98:2: error: ‘uint16_t’ does not name a type
uint16_t numBinary;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:99:2: error: ‘uint16_t’ does not name a type
uint16_t numDoubleBinary;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:100:2: error: ‘uint16_t’ does not name a type
uint16_t numAnalog;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:101:2: error: ‘uint16_t’ does not name a type
uint16_t numCounter;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:102:2: error: ‘uint16_t’ does not name a type
uint16_t numFrozenCounter;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:103:2: error: ‘uint16_t’ does not name a type
uint16_t numBinaryOutputStatus;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:104:2: error: ‘uint16_t’ does not name a type
uint16_t numAnalogOutputStatus;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:105:2: error: ‘uint16_t’ does not name a type
uint16_t numTimeAndInterval;
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::BinaryOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:36:32: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int&)’
return DatabaseTemplate(count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 1 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: no known conversion for argument 1 from ‘int’ to ‘const opendnp3::DatabaseTemplate&’
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::DoubleBinaryOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:41:35: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int&)’
return DatabaseTemplate(0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 2 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 2 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::AnalogOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:46:38: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int, int&)’
return DatabaseTemplate(0, 0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 3 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 3 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::CounterOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:51:41: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int, int, int&)’
return DatabaseTemplate(0, 0, 0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 4 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 4 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::FrozenCounterOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:56:44: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int, int, int, int&)’
return DatabaseTemplate(0, 0, 0, 0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 5 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 5 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::BinaryOutputStatusOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:61:47: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int, int, int, int, int&)’
return DatabaseTemplate(0, 0, 0, 0, 0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 6 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 6 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::AnalogOutputStatusOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:66:50: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int, int, int, int, int, int&)’
return DatabaseTemplate(0, 0, 0, 0, 0, 0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 7 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 7 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::TimeAndIntervalOnly(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:71:53: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int, int, int, int, int, int, int, int&)’
return DatabaseTemplate(0, 0, 0, 0, 0, 0, 0, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 8 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 8 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h: In static member function ‘static opendnp3::DatabaseTemplate opendnp3::DatabaseTemplate::AllTypes(int)’:
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:76:74: error: no matching function for call to ‘opendnp3::DatabaseTemplate::DatabaseTemplate(int&, int&, int&, int&, int&, int&, int&)’
return DatabaseTemplate(count, count, count, count, count, count, count);
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate()
struct DatabaseTemplate
^
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 0 arguments, 7 provided
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate: opendnp3::DatabaseTemplate::DatabaseTemplate(const opendnp3::DatabaseTemplate&)
/usr/local/include/opendnp3/outstation/DatabaseTemplate.h:32:8: note: candidate expects 1 argument, 7 provided
In file included from /usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:25:0,
from /usr/local/include/opendnp3/outstation/ICommandHandler.h:24,
from /usr/local/include/asiodnp3/IChannel.h:32,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/ControlCode.h: At global scope:
/usr/local/include/opendnp3/gen/ControlCode.h:32:12: error: use of enum ‘ControlCode’ without previous declaration
enum class ControlCode : uint8_t
^
/usr/local/include/opendnp3/gen/ControlCode.h:32:24: error: expected unqualified-id before ‘:’ token
enum class ControlCode : uint8_t
^
In file included from /usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:25:0,
from /usr/local/include/opendnp3/outstation/ICommandHandler.h:24,
from /usr/local/include/asiodnp3/IChannel.h:32,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/ControlCode.h:66:1: error: ‘uint8_t’ does not name a type
uint8_t ControlCodeToType(ControlCode arg);
^
/usr/local/include/opendnp3/gen/ControlCode.h:67:1: error: ‘ControlCode’ does not name a type
ControlCode ControlCodeFromType(uint8_t arg);
^
/usr/local/include/opendnp3/gen/ControlCode.h:68:33: error: ‘ControlCode’ was not declared in this scope
char const* ControlCodeToString(ControlCode arg);
^
In file included from /usr/local/include/opendnp3/outstation/ICommandHandler.h:24:0,
from /usr/local/include/asiodnp3/IChannel.h:32,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:43:18: error: expected ‘)’ before ‘code’
ControlCode code = ControlCode::LATCH_ON,
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:51:14: error: expected ‘)’ before ‘rawCode’
uint8_t rawCode,
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:58:2: error: ‘ControlCode’ does not name a type
ControlCode functionCode;
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:60:2: error: ‘uint8_t’ does not name a type
uint8_t rawCode;
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:62:2: error: ‘uint8_t’ does not name a type
uint8_t count;
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:64:2: error: ‘uint32_t’ does not name a type
uint32_t onTimeMS;
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:66:2: error: ‘uint32_t’ does not name a type
uint32_t offTimeMS;
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:68:2: error: ‘CommandStatus’ does not name a type
CommandStatus status;
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h: In member function ‘bool opendnp3::ControlRelayOutputBlock::ValuesEqual(const opendnp3::ControlRelayOutputBlock&) const’:
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:72:11: error: ‘functionCode’ was not declared in this scope
return (functionCode == lhs.functionCode) &&
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:72:31: error: ‘const class opendnp3::ControlRelayOutputBlock’ has no member named ‘functionCode’
return (functionCode == lhs.functionCode) &&
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:73:11: error: ‘count’ was not declared in this scope
(count == lhs.count) &&
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:73:24: error: ‘const class opendnp3::ControlRelayOutputBlock’ has no member named ‘count’
(count == lhs.count) &&
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:74:11: error: ‘onTimeMS’ was not declared in this scope
(onTimeMS == lhs.onTimeMS) &&
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:74:27: error: ‘const class opendnp3::ControlRelayOutputBlock’ has no member named ‘onTimeMS’
(onTimeMS == lhs.onTimeMS) &&
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:75:11: error: ‘offTimeMS’ was not declared in this scope
(offTimeMS == lhs.offTimeMS);
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:75:28: error: ‘const class opendnp3::ControlRelayOutputBlock’ has no member named ‘offTimeMS’
(offTimeMS == lhs.offTimeMS);
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h: In member function ‘bool opendnp3::ControlRelayOutputBlock::operator==(const opendnp3::ControlRelayOutputBlock&) const’:
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:80:43: error: ‘const class opendnp3::ControlRelayOutputBlock’ has no member named ‘status’
return this->ValuesEqual(lhs) && (this->status == lhs.status);
^
/usr/local/include/opendnp3/app/ControlRelayOutputBlock.h:80:57: error: ‘const class opendnp3::ControlRelayOutputBlock’ has no member named ‘status’
return this->ValuesEqual(lhs) && (this->status == lhs.status);
^
In file included from /usr/local/include/opendnp3/outstation/ICommandHandler.h:25:0,
from /usr/local/include/asiodnp3/IChannel.h:32,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/AnalogOutput.h: At global scope:
/usr/local/include/opendnp3/app/AnalogOutput.h:48:25: error: ‘CommandStatus’ has not been declared
AnalogOutput(T value_, CommandStatus status_) :
^
/usr/local/include/opendnp3/app/AnalogOutput.h:63:2: error: ‘CommandStatus’ does not name a type
CommandStatus status;
^
/usr/local/include/opendnp3/app/AnalogOutput.h: In constructor ‘opendnp3::AnalogOutput<T>::AnalogOutput()’:
/usr/local/include/opendnp3/app/AnalogOutput.h:40:3: error: class ‘opendnp3::AnalogOutput<T>’ does not have any field named ‘status’
status(CommandStatus::SUCCESS)
^
/usr/local/include/opendnp3/app/AnalogOutput.h:40:10: error: ‘CommandStatus’ has not been declared
status(CommandStatus::SUCCESS)
^
/usr/local/include/opendnp3/app/AnalogOutput.h: In constructor ‘opendnp3::AnalogOutput<T>::AnalogOutput(T)’:
/usr/local/include/opendnp3/app/AnalogOutput.h:45:3: error: class ‘opendnp3::AnalogOutput<T>’ does not have any field named ‘status’
status(CommandStatus::SUCCESS)
^
/usr/local/include/opendnp3/app/AnalogOutput.h:45:10: error: ‘CommandStatus’ has not been declared
status(CommandStatus::SUCCESS)
^
/usr/local/include/opendnp3/app/AnalogOutput.h: In constructor ‘opendnp3::AnalogOutput<T>::AnalogOutput(T, int)’:
/usr/local/include/opendnp3/app/AnalogOutput.h:50:3: error: class ‘opendnp3::AnalogOutput<T>’ does not have any field named ‘status’
status(status_)
^
/usr/local/include/opendnp3/app/AnalogOutput.h: At global scope:
/usr/local/include/opendnp3/app/AnalogOutput.h:69:47: error: ‘int16_t’ was not declared in this scope
class AnalogOutputInt16 : public AnalogOutput<int16_t>
^
/usr/local/include/opendnp3/app/AnalogOutput.h:69:54: error: template argument 1 is invalid
class AnalogOutputInt16 : public AnalogOutput<int16_t>
^
/usr/local/include/opendnp3/app/AnalogOutput.h:74:27: error: field ‘int16_t’ has incomplete type ‘opendnp3::AnalogOutputInt16’
AnalogOutputInt16(int16_t);
^
/usr/local/include/opendnp3/app/AnalogOutput.h:69:7: note: definition of ‘class opendnp3::AnalogOutputInt16’ is not complete until the closing brace
class AnalogOutputInt16 : public AnalogOutput<int16_t>
^
/usr/local/include/opendnp3/app/AnalogOutput.h:75:27: error: expected ‘)’ before ‘,’ token
AnalogOutputInt16(int16_t, CommandStatus);
^
/usr/local/include/opendnp3/app/AnalogOutput.h:83:47: error: ‘int32_t’ was not declared in this scope
class AnalogOutputInt32 : public AnalogOutput<int32_t>
^
/usr/local/include/opendnp3/app/AnalogOutput.h:83:54: error: template argument 1 is invalid
class AnalogOutputInt32 : public AnalogOutput<int32_t>
^
/usr/local/include/opendnp3/app/AnalogOutput.h:88:27: error: field ‘int32_t’ has incomplete type ‘opendnp3::AnalogOutputInt32’
AnalogOutputInt32(int32_t);
^
/usr/local/include/opendnp3/app/AnalogOutput.h:83:7: note: definition of ‘class opendnp3::AnalogOutputInt32’ is not complete until the closing brace
class AnalogOutputInt32 : public AnalogOutput<int32_t>
^
/usr/local/include/opendnp3/app/AnalogOutput.h:89:27: error: expected ‘)’ before ‘,’ token
AnalogOutputInt32(int32_t, CommandStatus);
^
/usr/local/include/opendnp3/app/AnalogOutput.h:103:29: error: ‘CommandStatus’ has not been declared
AnalogOutputFloat32(float, CommandStatus);
^
/usr/local/include/opendnp3/app/AnalogOutput.h:117:31: error: ‘CommandStatus’ has not been declared
AnalogOutputDouble64(double, CommandStatus);
^
In file included from /usr/local/include/opendnp3/outstation/ICommandHandler.h:27:0,
from /usr/local/include/asiodnp3/IChannel.h:32,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/OperateType.h:31:12: error: use of enum ‘OperateType’ without previous declaration
enum class OperateType : uint8_t
^
/usr/local/include/opendnp3/gen/OperateType.h:31:24: error: expected unqualified-id before ‘:’ token
enum class OperateType : uint8_t
^
In file included from /usr/local/include/asiodnp3/IChannel.h:32:0,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/ICommandHandler.h:49:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Select(const ControlRelayOutputBlock& command, uint16_t index) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:59:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Operate(const ControlRelayOutputBlock& command, uint16_t index, OperateType opType) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:69:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Select(const AnalogOutputInt16& command, uint16_t index) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:79:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Operate(const AnalogOutputInt16& command, uint16_t index, OperateType opType) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:89:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Select(const AnalogOutputInt32& command, uint16_t index) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:99:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Operate(const AnalogOutputInt32& command, uint16_t index, OperateType opType) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:108:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Select(const AnalogOutputFloat32& command, uint16_t index) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:118:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Operate(const AnalogOutputFloat32& command, uint16_t index, OperateType opType) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:127:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Select(const AnalogOutputDouble64& command, uint16_t index) = 0;
^
/usr/local/include/opendnp3/outstation/ICommandHandler.h:137:10: error: ‘CommandStatus’ does not name a type
virtual CommandStatus Operate(const AnalogOutputDouble64& command, uint16_t index, OperateType opType) = 0;
^
In file included from /usr/local/include/opendnp3/outstation/IOutstationApplication.h:27:0,
from /usr/local/include/asiodnp3/IChannel.h:33,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/RestartMode.h:31:12: error: use of enum ‘RestartMode’ without previous declaration
enum class RestartMode : uint8_t
^
/usr/local/include/opendnp3/gen/RestartMode.h:31:24: error: expected unqualified-id before ‘:’ token
enum class RestartMode : uint8_t
^
In file included from /usr/local/include/opendnp3/outstation/IOutstationApplication.h:28:0,
from /usr/local/include/asiodnp3/IChannel.h:33,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/AssignClassType.h:31:12: error: use of enum ‘AssignClassType’ without previous declaration
enum class AssignClassType : uint8_t
^
/usr/local/include/opendnp3/gen/AssignClassType.h:31:28: error: expected unqualified-id before ‘:’ token
enum class AssignClassType : uint8_t
^
In file included from /usr/local/include/asiodnp3/IChannel.h:33:0,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:79:77: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual bool WriteTimeAndInterval(const ICollection<Indexed<TimeAndInterval>>& values)
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:96:37: error: ‘AssignClassType’ has not been declared
virtual void RecordClassAssignment(AssignClassType type, PointClass clazz, uint16_t start, uint16_t stop) {}
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:96:59: error: ‘PointClass’ has not been declared
virtual void RecordClassAssignment(AssignClassType type, PointClass clazz, uint16_t start, uint16_t stop) {}
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:96:77: error: ‘uint16_t’ has not been declared
virtual void RecordClassAssignment(AssignClassType type, PointClass clazz, uint16_t start, uint16_t stop) {}
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:96:93: error: ‘uint16_t’ has not been declared
virtual void RecordClassAssignment(AssignClassType type, PointClass clazz, uint16_t start, uint16_t stop) {}
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:105:10: error: ‘RestartMode’ does not name a type
virtual RestartMode ColdRestartSupport() const
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:111:10: error: ‘RestartMode’ does not name a type
virtual RestartMode WarmRestartSupport() const
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:120:10: error: ‘uint16_t’ does not name a type
virtual uint16_t ColdRestart()
^
/usr/local/include/opendnp3/outstation/IOutstationApplication.h:129:10: error: ‘uint16_t’ does not name a type
virtual uint16_t WarmRestart()
^
In file included from /usr/local/include/openpal/executor/ITimer.h:24:0,
from /usr/local/include/openpal/executor/IExecutor.h:24,
from /usr/local/include/asiodnp3/IChannel.h:36,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/MonotonicTimestamp.h:46:38: error: expected ‘)’ before ‘milliseconds’
explicit MonotonicTimestamp(int64_t milliseconds);
^
/usr/local/include/openpal/executor/MonotonicTimestamp.h:49:2: error: ‘int64_t’ does not name a type
int64_t milliseconds;
^
In file included from /usr/local/include/openpal/executor/Erasure.h:24:0,
from /usr/local/include/openpal/executor/Action0.h:24,
from /usr/local/include/openpal/executor/IExecutor.h:26,
from /usr/local/include/asiodnp3/IChannel.h:36,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/Configure.h:39:14: error: ‘uint16_t’ does not name a type
static const uint16_t MAX_ERASURE_SIZE = OPENPAL_ERASURE_MULTIPLE* sizeof(void*);
^
In file included from /usr/local/include/openpal/executor/Action0.h:24:0,
from /usr/local/include/openpal/executor/IExecutor.h:26,
from /usr/local/include/asiodnp3/IChannel.h:36,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/Erasure.h:36:19: error: expected ‘)’ before ‘size_’
Erasure(uint32_t size_);
^
/usr/local/include/openpal/executor/Erasure.h:40:2: error: ‘uint32_t’ does not name a type
uint32_t size;
^
/usr/local/include/openpal/executor/Erasure.h:41:2: error: ‘uint8_t’ does not name a type
uint8_t bytes[sizes::MAX_ERASURE_SIZE];
^
In file included from /usr/local/include/openpal/executor/IExecutor.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:36,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/Action0.h:38:30: error: ‘uint8_t’ does not name a type
typedef void(*Invoke)(const uint8_t* pBuffer);
^
/usr/local/include/openpal/executor/Action0.h:72:30: error: ‘uint8_t’ does not name a type
static void RunLambda(const uint8_t* pBuffer)
^
/usr/local/include/openpal/executor/Action0.h:77:27: error: ‘uint32_t’ has not been declared
Action0(Invoke pInvoke_, uint32_t size_);
^
/usr/local/include/openpal/executor/Action0.h: In static member function ‘static openpal::Action0 openpal::Action0::Bind(Lambda&)’:
/usr/local/include/openpal/executor/Action0.h:53:35: error: ‘MAX_ERASURE_SIZE’ is not a member of ‘openpal::sizes’
static_assert(sizeof(Lambda) <= sizes::MAX_ERASURE_SIZE, "Lambda is too big for erasure");
^
/usr/local/include/openpal/executor/Action0.h:53:91: error: there are no arguments to ‘static_assert’ that depend on a template parameter, so a declaration of ‘static_assert’ must be available [-fpermissive]
static_assert(sizeof(Lambda) <= sizes::MAX_ERASURE_SIZE, "Lambda is too big for erasure");
^
/usr/local/include/openpal/executor/Action0.h:53:91: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/local/include/openpal/executor/Action0.h:55:16: error: ‘class openpal::Action0’ has no member named ‘bytes’
new(runnable.bytes) Lambda(lambda); // use placement new
^
/usr/local/include/openpal/executor/Action0.h: In static member function ‘static openpal::Action0 openpal::Action0::BindDelete(T*)’:
/usr/local/include/openpal/executor/Action0.h:62:8: error: ‘lambda’ does not name a type
auto lambda = [pPointer]()
^
/usr/local/include/openpal/executor/Action0.h:66:15: error: ‘lambda’ was not declared in this scope
return Bind(lambda);
^
In file included from /usr/local/include/asiodnp3/IStack.h:24:0,
from /usr/local/include/asiodnp3/IMaster.h:24,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/asiodnp3/DestructorHook.h: At global scope:
/usr/local/include/asiodnp3/DestructorHook.h:59:36: error: ‘function’ in namespace ‘std’ does not name a template type
void AddDestructorHook(const std::function<void()>& action);
^
/usr/local/include/asiodnp3/DestructorHook.h:59:44: error: expected ‘,’ or ‘...’ before ‘<’ token
void AddDestructorHook(const std::function<void()>& action);
^
/usr/local/include/asiodnp3/DestructorHook.h:62:14: error: ‘function’ is not a member of ‘std’
std::vector<std::function<void()>> actions;
^
/usr/local/include/asiodnp3/DestructorHook.h:62:14: error: ‘function’ is not a member of ‘std’
/usr/local/include/asiodnp3/DestructorHook.h:62:33: error: a call to a constructor cannot appear in a constant-expression
std::vector<std::function<void()>> actions;
^
/usr/local/include/asiodnp3/DestructorHook.h:62:37: error: ‘actions’ was not declared in this scope
std::vector<std::function<void()>> actions;
^
/usr/local/include/asiodnp3/DestructorHook.h:62:37: error: template argument 1 is invalid
/usr/local/include/asiodnp3/DestructorHook.h:62:37: error: template argument 2 is invalid
/usr/local/include/asiodnp3/DestructorHook.h: In member function ‘void asiodnp3::DestructorHook::DeleteOnDestruct(T*)’:
/usr/local/include/asiodnp3/DestructorHook.h:50:8: error: ‘lambda’ does not name a type
auto lambda = [pointer]()
^
/usr/local/include/asiodnp3/DestructorHook.h:54:27: error: ‘lambda’ was not declared in this scope
this->AddDestructorHook(lambda);
^
In file included from /usr/local/include/asiodnp3/IStack.h:28:0,
from /usr/local/include/asiodnp3/IMaster.h:24,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/StackStatistics.h: At global scope:
/usr/local/include/opendnp3/StackStatistics.h:41:2: error: ‘uint32_t’ does not name a type
uint32_t numTransportRx;
^
/usr/local/include/opendnp3/StackStatistics.h:44:2: error: ‘uint32_t’ does not name a type
uint32_t numTransportTx;
^
/usr/local/include/opendnp3/StackStatistics.h:47:2: error: ‘uint32_t’ does not name a type
uint32_t numTransportErrorRx;
^
/usr/local/include/opendnp3/StackStatistics.h: In constructor ‘opendnp3::StackStatistics::StackStatistics()’:
/usr/local/include/opendnp3/StackStatistics.h:35:3: error: class ‘opendnp3::StackStatistics’ does not have any field named ‘numTransportRx’
numTransportRx(0),
^
/usr/local/include/opendnp3/StackStatistics.h:36:3: error: class ‘opendnp3::StackStatistics’ does not have any field named ‘numTransportTx’
numTransportTx(0),
^
/usr/local/include/opendnp3/StackStatistics.h:37:3: error: class ‘opendnp3::StackStatistics’ does not have any field named ‘numTransportErrorRx’
numTransportErrorRx(0)
^
In file included from /usr/local/include/opendnp3/master/TaskConfig.h:25:0,
from /usr/local/include/asiodnp3/IMasterOperations.h:29,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/ITaskCallback.h: At global scope:
/usr/local/include/opendnp3/master/ITaskCallback.h:40:26: error: ‘TaskCompletion’ has not been declared
virtual void OnComplete(TaskCompletion result) = 0;
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:29:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/TaskConfig.h: In static member function ‘static opendnp3::TaskConfig opendnp3::TaskConfig::Default()’:
/usr/local/include/opendnp3/master/TaskConfig.h:46:42: error: ‘nullptr’ was not declared in this scope
return TaskConfig(TaskId::Undefined(), nullptr);
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:30:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/MasterScan.h: At global scope:
/usr/local/include/opendnp3/master/MasterScan.h:42:74: error: ‘function’ in namespace ‘std’ does not name a template type
MasterScan(openpal::IExecutor& executor, IMasterTask* pTask, const std::function<void()>& demandCallback);
^
/usr/local/include/opendnp3/master/MasterScan.h:42:82: error: expected ‘,’ or ‘...’ before ‘<’ token
MasterScan(openpal::IExecutor& executor, IMasterTask* pTask, const std::function<void()>& demandCallback);
^
/usr/local/include/opendnp3/master/MasterScan.h:53:7: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<void()> demandCallback;
^
In file included from /usr/local/include/opendnp3/master/CommandSet.h:24:0,
from /usr/local/include/opendnp3/master/ICommandProcessor.h:24,
from /usr/local/include/asiodnp3/IMasterOperations.h:31,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/ICommandCollection.h:35:52: error: ‘uint16_t’ has not been declared
virtual ICommandCollection& Add(const T& command, uint16_t index) = 0;
^
In file included from /usr/local/include/opendnp3/master/ICommandProcessor.h:24:0,
from /usr/local/include/asiodnp3/IMasterOperations.h:31,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/CommandSet.h:54:23: error: expected ‘,’ or ‘...’ before ‘&&’ token
CommandSet(CommandSet&& other);
^
/usr/local/include/opendnp3/master/CommandSet.h:54:31: error: invalid constructor; you probably meant ‘opendnp3::CommandSet (const opendnp3::CommandSet&)’
CommandSet(CommandSet&& other);
^
/usr/local/include/opendnp3/master/CommandSet.h:60:34: error: expected ‘)’ before ‘<’ token
CommandSet(std::initializer_list<Indexed<ControlRelayOutputBlock>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h:63:34: error: expected ‘)’ before ‘<’ token
CommandSet(std::initializer_list<Indexed<AnalogOutputInt16>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h:66:34: error: expected ‘)’ before ‘<’ token
CommandSet(std::initializer_list<Indexed<AnalogOutputInt32>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h:69:34: error: expected ‘)’ before ‘<’ token
CommandSet(std::initializer_list<Indexed<AnalogOutputFloat32>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h:72:34: error: expected ‘)’ before ‘<’ token
CommandSet(std::initializer_list<Indexed<AnalogOutputDouble64>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h:76:16: error: ‘std::initializer_list’ has not been declared
void Add(std::initializer_list<Indexed<T>> items)
^
/usr/local/include/opendnp3/master/CommandSet.h:76:32: error: expected ‘,’ or ‘...’ before ‘<’ token
void Add(std::initializer_list<Indexed<T>> items)
^
/usr/local/include/opendnp3/master/CommandSet.h:93:19: error: ‘std::initializer_list’ has not been declared
void AddAny(std::initializer_list<Indexed<T>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h:93:35: error: expected ‘,’ or ‘...’ before ‘<’ token
void AddAny(std::initializer_list<Indexed<T>> items);
^
/usr/local/include/opendnp3/master/CommandSet.h: In member function ‘void opendnp3::CommandSet::Add(int)’:
/usr/local/include/opendnp3/master/CommandSet.h:79:25: error: ‘items’ was not declared in this scope
for (auto & command : items)
^
/usr/local/include/opendnp3/master/CommandSet.h:81:11: error: request for member ‘Add’ in ‘header’, which is of non-class type ‘int’
header.Add(command.value, command.index);
^
/usr/local/include/opendnp3/master/CommandSet.h:81:23: error: request for member ‘value’ in ‘command’, which is of non-class type ‘int’
header.Add(command.value, command.index);
^
/usr/local/include/opendnp3/master/CommandSet.h:81:38: error: request for member ‘index’ in ‘command’, which is of non-class type ‘int’
header.Add(command.value, command.index);
^
In file included from /usr/local/include/opendnp3/master/CommandPointResult.h:26:0,
from /usr/local/include/opendnp3/master/ICommandTaskResult.h:25,
from /usr/local/include/opendnp3/master/CommandCallbackT.h:24,
from /usr/local/include/opendnp3/master/ICommandProcessor.h:25,
from /usr/local/include/asiodnp3/IMasterOperations.h:31,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/CommandPointState.h: At global scope:
/usr/local/include/opendnp3/gen/CommandPointState.h:31:12: error: use of enum ‘CommandPointState’ without previous declaration
enum class CommandPointState : uint8_t
^
/usr/local/include/opendnp3/gen/CommandPointState.h:31:30: error: expected unqualified-id before ‘:’ token
enum class CommandPointState : uint8_t
^
/usr/local/include/opendnp3/gen/CommandPointState.h:47:39: error: ‘CommandPointState’ was not declared in this scope
char const* CommandPointStateToString(CommandPointState arg);
^
In file included from /usr/local/include/opendnp3/master/ICommandTaskResult.h:25:0,
from /usr/local/include/opendnp3/master/CommandCallbackT.h:24,
from /usr/local/include/opendnp3/master/ICommandProcessor.h:25,
from /usr/local/include/asiodnp3/IMasterOperations.h:31,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/CommandPointResult.h:38:30: error: expected ‘)’ before ‘headerIndex_’
CommandPointResult(uint32_t headerIndex_, uint16_t index_, CommandPointState state_, CommandStatus status_) :
^
/usr/local/include/opendnp3/master/CommandPointResult.h:55:2: error: ‘uint32_t’ does not name a type
uint32_t headerIndex;
^
/usr/local/include/opendnp3/master/CommandPointResult.h:58:2: error: ‘uint16_t’ does not name a type
uint16_t index;
^
/usr/local/include/opendnp3/master/CommandPointResult.h:61:2: error: ‘CommandPointState’ does not name a type
CommandPointState state;
^
/usr/local/include/opendnp3/master/CommandPointResult.h:64:2: error: ‘CommandStatus’ does not name a type
CommandStatus status;
^
/usr/local/include/opendnp3/master/CommandPointResult.h: In member function ‘bool opendnp3::CommandPointResult::Equals(const opendnp3::CommandPointResult&) const’:
/usr/local/include/opendnp3/master/CommandPointResult.h:48:11: error: ‘headerIndex’ was not declared in this scope
return (headerIndex == other.headerIndex) &&
^
/usr/local/include/opendnp3/master/CommandPointResult.h:48:32: error: ‘const class opendnp3::CommandPointResult’ has no member named ‘headerIndex’
return (headerIndex == other.headerIndex) &&
^
/usr/local/include/opendnp3/master/CommandPointResult.h:49:12: error: ‘index’ was not declared in this scope
(index == other.index) &&
^
/usr/local/include/opendnp3/master/CommandPointResult.h:49:27: error: ‘const class opendnp3::CommandPointResult’ has no member named ‘index’
(index == other.index) &&
^
/usr/local/include/opendnp3/master/CommandPointResult.h:50:12: error: ‘state’ was not declared in this scope
(state == other.state) &&
^
/usr/local/include/opendnp3/master/CommandPointResult.h:50:27: error: ‘const class opendnp3::CommandPointResult’ has no member named ‘state’
(state == other.state) &&
^
/usr/local/include/opendnp3/master/CommandPointResult.h:51:12: error: ‘status’ was not declared in this scope
(status == other.status);
^
/usr/local/include/opendnp3/master/CommandPointResult.h:51:28: error: ‘const class opendnp3::CommandPointResult’ has no member named ‘status’
(status == other.status);
^
In file included from /usr/local/include/opendnp3/master/CommandCallbackT.h:24:0,
from /usr/local/include/opendnp3/master/ICommandProcessor.h:25,
from /usr/local/include/asiodnp3/IMasterOperations.h:31,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/ICommandTaskResult.h: At global scope:
/usr/local/include/opendnp3/master/ICommandTaskResult.h:46:36: error: expected ‘)’ before ‘result_’
ICommandTaskResult(TaskCompletion result_) : summary(result_)
^
/usr/local/include/opendnp3/master/ICommandTaskResult.h:50:2: error: ‘TaskCompletion’ does not name a type
TaskCompletion summary;
^
In file included from /usr/local/include/opendnp3/master/ICommandProcessor.h:25:0,
from /usr/local/include/asiodnp3/IMasterOperations.h:31,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/CommandCallbackT.h:31:14: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function<void(const ICommandTaskResult&)> CommandCallbackT;
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:31:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/ICommandProcessor.h:45:42: error: expected ‘,’ or ‘...’ before ‘&&’ token
virtual void SelectAndOperate(CommandSet&& commands, const CommandCallbackT& callback, const TaskConfig& config = TaskConfig::Default()) = 0;
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:31:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/ICommandProcessor.h:54:39: error: expected ‘,’ or ‘...’ before ‘&&’ token
virtual void DirectOperate(CommandSet&& commands, const CommandCallbackT& callback, const TaskConfig& config = TaskConfig::Default()) = 0;
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:66:42: error: ‘uint16_t’ has not been declared
void SelectAndOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config = TaskConfig::Default());
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:66:64: error: ‘CommandCallbackT’ does not name a type
void SelectAndOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config = TaskConfig::Default());
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:77:39: error: ‘uint16_t’ has not been declared
void DirectOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config = TaskConfig::Default());
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:77:61: error: ‘CommandCallbackT’ does not name a type
void DirectOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config = TaskConfig::Default());
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:81:60: error: ‘uint16_t’ has not been declared
void ICommandProcessor::SelectAndOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config)
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:81:82: error: ‘CommandCallbackT’ does not name a type
void ICommandProcessor::SelectAndOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config)
^
/usr/local/include/opendnp3/master/ICommandProcessor.h: In member function ‘void opendnp3::ICommandProcessor::SelectAndOperate(const T&, int, const int&, const opendnp3::TaskConfig&)’:
/usr/local/include/opendnp3/master/ICommandProcessor.h:84:25: error: ‘move’ is not a member of ‘std’
this->SelectAndOperate(std::move(commands), callback, config);
^
/usr/local/include/opendnp3/master/ICommandProcessor.h: At global scope:
/usr/local/include/opendnp3/master/ICommandProcessor.h:88:57: error: ‘uint16_t’ has not been declared
void ICommandProcessor::DirectOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config)
^
/usr/local/include/opendnp3/master/ICommandProcessor.h:88:79: error: ‘CommandCallbackT’ does not name a type
void ICommandProcessor::DirectOperate(const T& command, uint16_t index, const CommandCallbackT& callback, const TaskConfig& config)
^
/usr/local/include/opendnp3/master/ICommandProcessor.h: In member function ‘void opendnp3::ICommandProcessor::DirectOperate(const T&, int, const int&, const opendnp3::TaskConfig&)’:
/usr/local/include/opendnp3/master/ICommandProcessor.h:91:22: error: ‘move’ is not a member of ‘std’
this->DirectOperate(std::move(commands), callback, config);
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:32:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/master/RestartOperationResult.h: At global scope:
/usr/local/include/opendnp3/master/RestartOperationResult.h:41:40: error: expected ‘)’ before ‘summary_’
RestartOperationResult(TaskCompletion summary_, openpal::TimeDuration restartTime_) :
^
/usr/local/include/opendnp3/master/RestartOperationResult.h:46:2: error: ‘TaskCompletion’ does not name a type
TaskCompletion summary;
^
/usr/local/include/opendnp3/master/RestartOperationResult.h: In constructor ‘opendnp3::RestartOperationResult::RestartOperationResult()’:
/usr/local/include/opendnp3/master/RestartOperationResult.h:38:29: error: class ‘opendnp3::RestartOperationResult’ does not have any field named ‘summary’
RestartOperationResult() : summary(TaskCompletion::FAILURE_NO_COMMS)
^
/usr/local/include/opendnp3/master/RestartOperationResult.h:38:37: error: ‘TaskCompletion’ has not been declared
RestartOperationResult() : summary(TaskCompletion::FAILURE_NO_COMMS)
^
/usr/local/include/opendnp3/master/RestartOperationResult.h: At global scope:
/usr/local/include/opendnp3/master/RestartOperationResult.h:52:14: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function<void(const RestartOperationResult&)> RestartOperationCallbackT;
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:34:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/FunctionCode.h:31:12: error: use of enum ‘FunctionCode’ without previous declaration
enum class FunctionCode : uint8_t
^
/usr/local/include/opendnp3/gen/FunctionCode.h:31:25: error: expected unqualified-id before ‘:’ token
enum class FunctionCode : uint8_t
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:34:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/FunctionCode.h:109:1: error: ‘uint8_t’ does not name a type
uint8_t FunctionCodeToType(FunctionCode arg);
^
/usr/local/include/opendnp3/gen/FunctionCode.h:110:1: error: ‘FunctionCode’ does not name a type
FunctionCode FunctionCodeFromType(uint8_t arg);
^
/usr/local/include/opendnp3/gen/FunctionCode.h:111:34: error: ‘FunctionCode’ was not declared in this scope
char const* FunctionCodeToString(FunctionCode arg);
^
In file included from /usr/local/include/asiodnp3/IMasterOperations.h:35:0,
from /usr/local/include/asiodnp3/IMaster.h:25,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/RestartType.h:31:12: error: use of enum ‘RestartType’ without previous declaration
enum class RestartType : uint8_t
^
/usr/local/include/opendnp3/gen/RestartType.h:31:24: error: expected unqualified-id before ‘:’ token
enum class RestartType : uint8_t
^
In file included from /usr/local/include/asiodnp3/IMaster.h:25:0,
from /usr/local/include/asiodnp3/IChannel.h:38,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/asiodnp3/IMasterOperations.h:87:77: error: ‘uint16_t’ has not been declared
virtual opendnp3::MasterScan AddRangeScan(opendnp3::GroupVariationID gvId, uint16_t start, uint16_t stop, openpal::TimeDuration period, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:87:93: error: ‘uint16_t’ has not been declared
virtual opendnp3::MasterScan AddRangeScan(opendnp3::GroupVariationID gvId, uint16_t start, uint16_t stop, openpal::TimeDuration period, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:106:58: error: ‘uint16_t’ has not been declared
virtual void ScanRange(opendnp3::GroupVariationID gvId, uint16_t start, uint16_t stop, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:106:74: error: ‘uint16_t’ has not been declared
virtual void ScanRange(opendnp3::GroupVariationID gvId, uint16_t start, uint16_t stop, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:111:61: error: ‘uint16_t’ has not been declared
virtual void Write(const opendnp3::TimeAndInterval& value, uint16_t index, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:116:33: error: ‘opendnp3::RestartType’ has not been declared
virtual void Restart(opendnp3::RestartType op, const opendnp3::RestartOperationCallbackT& callback, opendnp3::TaskConfig config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:116:65: error: ‘RestartOperationCallbackT’ in namespace ‘opendnp3’ does not name a type
virtual void Restart(opendnp3::RestartType op, const opendnp3::RestartOperationCallbackT& callback, opendnp3::TaskConfig config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:121:42: error: ‘string’ in namespace ‘std’ does not name a type
virtual void PerformFunction(const std::string& name, opendnp3::FunctionCode func, const std::vector<opendnp3::Header>& headers, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
/usr/local/include/asiodnp3/IMasterOperations.h:121:66: error: ‘opendnp3::FunctionCode’ has not been declared
virtual void PerformFunction(const std::string& name, opendnp3::FunctionCode func, const std::vector<opendnp3::Header>& headers, const opendnp3::TaskConfig& config = opendnp3::TaskConfig::Default()) = 0;
^
In file included from /usr/local/include/opendnp3/outstation/IDatabase.h:27:0,
from /usr/local/include/asiodnp3/IOutstation.h:26,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/gen/EventMode.h:31:12: error: use of enum ‘EventMode’ without previous declaration
enum class EventMode : uint8_t
^
/usr/local/include/opendnp3/gen/EventMode.h:31:22: error: expected unqualified-id before ‘:’ token
enum class EventMode : uint8_t
^
In file included from /usr/local/include/opendnp3/outstation/IDatabase.h:29:0,
from /usr/local/include/asiodnp3/IOutstation.h:26,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/executor/Function1.h:34:28: error: ‘uint8_t’ does not name a type
typedef R (*Invoke)(const uint8_t* pBuffer, const A& arg);
^
/usr/local/include/openpal/executor/Function1.h:75:27: error: ‘uint8_t’ does not name a type
static R RunLambda(const uint8_t* pBuffer, const A& arg)
^
/usr/local/include/openpal/executor/Function1.h:80:29: error: ‘uint32_t’ has not been declared
Function1(Invoke pInvoke_, uint32_t size_) : Erasure(size_), pInvoke(pInvoke_)
^
/usr/local/include/openpal/executor/Function1.h: In constructor ‘openpal::Function1<A, R>::Function1()’:
/usr/local/include/openpal/executor/Function1.h:38:35: error: ‘nullptr’ was not declared in this scope
Function1() : Erasure(), pInvoke(nullptr)
^
/usr/local/include/openpal/executor/Function1.h: In static member function ‘static openpal::Function1<A, R> openpal::Function1<A, R>::Bind(Lambda&)’:
/usr/local/include/openpal/executor/Function1.h:60:35: error: ‘MAX_ERASURE_SIZE’ is not a member of ‘openpal::sizes’
static_assert(sizeof(Lambda) <= sizes::MAX_ERASURE_SIZE, "Lambda is too big for erasure");
^
/usr/local/include/openpal/executor/Function1.h:60:91: error: there are no arguments to ‘static_assert’ that depend on a template parameter, so a declaration of ‘static_assert’ must be available [-fpermissive]
static_assert(sizeof(Lambda) <= sizes::MAX_ERASURE_SIZE, "Lambda is too big for erasure");
^
/usr/local/include/openpal/executor/Function1.h: In member function ‘R openpal::Function1<A, R>::Apply(const A&) const’:
/usr/local/include/openpal/executor/Function1.h:69:21: error: ‘bytes’ was not declared in this scope
return (*pInvoke)(bytes, arg);
^
In file included from /usr/local/include/asiodnp3/IOutstation.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/IDatabase.h: At global scope:
/usr/local/include/opendnp3/outstation/IDatabase.h:52:42: error: ‘uint16_t’ has not been declared
virtual bool Update(const Binary& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:52:58: error: ‘EventMode’ has not been declared
virtual bool Update(const Binary& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:61:51: error: ‘uint16_t’ has not been declared
virtual bool Update(const DoubleBitBinary& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:61:67: error: ‘EventMode’ has not been declared
virtual bool Update(const DoubleBitBinary& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:70:42: error: ‘uint16_t’ has not been declared
virtual bool Update(const Analog& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:70:58: error: ‘EventMode’ has not been declared
virtual bool Update(const Analog& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:79:43: error: ‘uint16_t’ has not been declared
virtual bool Update(const Counter& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:79:59: error: ‘EventMode’ has not been declared
virtual bool Update(const Counter& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:88:49: error: ‘uint16_t’ has not been declared
virtual bool Update(const FrozenCounter& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:88:65: error: ‘EventMode’ has not been declared
virtual bool Update(const FrozenCounter& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:97:54: error: ‘uint16_t’ has not been declared
virtual bool Update(const BinaryOutputStatus& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:97:70: error: ‘EventMode’ has not been declared
virtual bool Update(const BinaryOutputStatus& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:106:54: error: ‘uint16_t’ has not been declared
virtual bool Update(const AnalogOutputStatus& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:106:70: error: ‘EventMode’ has not been declared
virtual bool Update(const AnalogOutputStatus& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:114:51: error: ‘uint16_t’ has not been declared
virtual bool Update(const TimeAndInterval& meas, uint16_t index) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:123:79: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const Binary&, Binary>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:123:95: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const Binary&, Binary>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
In file included from /usr/local/include/asiodnp3/IOutstation.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/IDatabase.h:132:97: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const DoubleBitBinary&, DoubleBitBinary>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:132:113: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const DoubleBitBinary&, DoubleBitBinary>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:141:79: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const Analog&, Analog>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:141:95: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const Analog&, Analog>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:150:81: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const Counter&, Counter>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:150:97: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const Counter&, Counter>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:159:93: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const FrozenCounter&, FrozenCounter>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:159:109: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const FrozenCounter&, FrozenCounter>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:168:103: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const BinaryOutputStatus&, BinaryOutputStatus>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:168:119: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const BinaryOutputStatus&, BinaryOutputStatus>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:177:103: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const AnalogOutputStatus&, AnalogOutputStatus>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:177:119: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const AnalogOutputStatus&, AnalogOutputStatus>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:185:97: error: ‘uint16_t’ has not been declared
virtual bool Modify(const openpal::Function1<const TimeAndInterval&, TimeAndInterval>& modify, uint16_t index) = 0;
^
In file included from /usr/local/include/asiodnp3/IOutstation.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/IDatabase.h:52:75: error: ‘EventMode’ has not been declared
virtual bool Update(const Binary& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:61:84: error: ‘EventMode’ has not been declared
virtual bool Update(const DoubleBitBinary& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:70:75: error: ‘EventMode’ has not been declared
virtual bool Update(const Analog& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:79:76: error: ‘EventMode’ has not been declared
virtual bool Update(const Counter& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:88:82: error: ‘EventMode’ has not been declared
virtual bool Update(const FrozenCounter& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:97:87: error: ‘EventMode’ has not been declared
virtual bool Update(const BinaryOutputStatus& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:106:87: error: ‘EventMode’ has not been declared
virtual bool Update(const AnalogOutputStatus& meas, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:123:112: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const Binary&, Binary>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
In file included from /usr/local/include/asiodnp3/IOutstation.h:26:0,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/IDatabase.h:132:130: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const DoubleBitBinary&, DoubleBitBinary>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:141:112: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const Analog&, Analog>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:150:114: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const Counter&, Counter>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:159:126: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const FrozenCounter&, FrozenCounter>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:168:136: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const BinaryOutputStatus&, BinaryOutputStatus>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
/usr/local/include/opendnp3/outstation/IDatabase.h:177:136: error: ‘EventMode’ has not been declared
virtual bool Modify(const openpal::Function1<const AnalogOutputStatus&, AnalogOutputStatus>& modify, uint16_t index, EventMode mode = EventMode::Detect) = 0;
^
In file included from /usr/local/include/opendnp3/outstation/DatabaseConfigView.h:27:0,
from /usr/local/include/asiodnp3/IOutstation.h:27,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/Cell.h:58:2: error: ‘uint16_t’ does not name a type
uint16_t vIndex; // virtual index for discontiguous data, as opposed to the raw array index
^
/usr/local/include/opendnp3/outstation/Cell.h: In constructor ‘opendnp3::Cell<ValueType>::Cell()’:
/usr/local/include/opendnp3/outstation/Cell.h:48:20: error: class ‘opendnp3::Cell<ValueType>’ does not have any field named ‘vIndex’
Cell() : value(), vIndex(0), variation(ValueType::DefaultStaticVariation)
^
In file included from /usr/local/include/opendnp3/outstation/DatabaseConfigView.h:29:0,
from /usr/local/include/asiodnp3/IOutstation.h:27,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/openpal/container/ArrayView.h: In static member function ‘static openpal::ArrayView<ValueType, IndexType> openpal::ArrayView<ValueType, IndexType>::Empty()’:
/usr/local/include/openpal/container/ArrayView.h:42:20: error: ‘nullptr’ was not declared in this scope
return ArrayView(nullptr, 0);
^
In file included from /usr/local/include/asiodnp3/IOutstation.h:27:0,
from /usr/local/include/asiodnp3/IChannel.h:39,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h: At global scope:
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:51:39: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<Binary>, uint16_t> binaries_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:51:47: error: template argument 2 is invalid
openpal::ArrayView<Cell<Binary>, uint16_t> binaries_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:52:48: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<DoubleBitBinary>, uint16_t> doubleBinaries_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:52:56: error: template argument 2 is invalid
openpal::ArrayView<Cell<DoubleBitBinary>, uint16_t> doubleBinaries_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:53:39: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<Analog>, uint16_t> analogs_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:53:47: error: template argument 2 is invalid
openpal::ArrayView<Cell<Analog>, uint16_t> analogs_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:54:40: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<Counter>, uint16_t> counters_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:54:48: error: template argument 2 is invalid
openpal::ArrayView<Cell<Counter>, uint16_t> counters_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:55:46: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<FrozenCounter>, uint16_t> frozenCounters_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:55:54: error: template argument 2 is invalid
openpal::ArrayView<Cell<FrozenCounter>, uint16_t> frozenCounters_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:56:51: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<BinaryOutputStatus>, uint16_t> binaryOutputStatii_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:56:59: error: template argument 2 is invalid
openpal::ArrayView<Cell<BinaryOutputStatus>, uint16_t> binaryOutputStatii_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:57:51: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<AnalogOutputStatus>, uint16_t> analogOutputStatii_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:57:59: error: template argument 2 is invalid
openpal::ArrayView<Cell<AnalogOutputStatus>, uint16_t> analogOutputStatii_,
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:58:48: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<TimeAndInterval>, uint16_t> timeAndIntervals_
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:58:56: error: template argument 2 is invalid
openpal::ArrayView<Cell<TimeAndInterval>, uint16_t> timeAndIntervals_
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:63:43: error: ‘uint16_t’ has not been declared
void SetInitialValue(const Binary& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:64:52: error: ‘uint16_t’ has not been declared
void SetInitialValue(const DoubleBitBinary& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:65:43: error: ‘uint16_t’ has not been declared
void SetInitialValue(const Analog& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:66:44: error: ‘uint16_t’ has not been declared
void SetInitialValue(const Counter& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:67:50: error: ‘uint16_t’ has not been declared
void SetInitialValue(const FrozenCounter& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:68:55: error: ‘uint16_t’ has not been declared
void SetInitialValue(const BinaryOutputStatus& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:69:55: error: ‘uint16_t’ has not been declared
void SetInitialValue(const AnalogOutputStatus& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:70:52: error: ‘uint16_t’ has not been declared
void SetInitialValue(const TimeAndInterval& meas, uint16_t index);
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:74:35: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<Binary>, uint16_t> binaries;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:74:43: error: template argument 2 is invalid
openpal::ArrayView<Cell<Binary>, uint16_t> binaries;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:75:44: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<DoubleBitBinary>, uint16_t> doubleBinaries;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:75:52: error: template argument 2 is invalid
openpal::ArrayView<Cell<DoubleBitBinary>, uint16_t> doubleBinaries;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:76:35: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<Analog>, uint16_t> analogs;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:76:43: error: template argument 2 is invalid
openpal::ArrayView<Cell<Analog>, uint16_t> analogs;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:77:36: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<Counter>, uint16_t> counters;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:77:44: error: template argument 2 is invalid
openpal::ArrayView<Cell<Counter>, uint16_t> counters;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:78:42: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<FrozenCounter>, uint16_t> frozenCounters;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:78:50: error: template argument 2 is invalid
openpal::ArrayView<Cell<FrozenCounter>, uint16_t> frozenCounters;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:79:47: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<BinaryOutputStatus>, uint16_t> binaryOutputStatii;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:79:55: error: template argument 2 is invalid
openpal::ArrayView<Cell<BinaryOutputStatus>, uint16_t> binaryOutputStatii;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:80:47: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<AnalogOutputStatus>, uint16_t> analogOutputStatii;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:80:55: error: template argument 2 is invalid
openpal::ArrayView<Cell<AnalogOutputStatus>, uint16_t> analogOutputStatii;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:81:44: error: ‘uint16_t’ was not declared in this scope
openpal::ArrayView<Cell<TimeAndInterval>, uint16_t> timeAndIntervals;
^
/usr/local/include/opendnp3/outstation/DatabaseConfigView.h:81:52: error: template argument 2 is invalid
openpal::ArrayView<Cell<TimeAndInterval>, uint16_t> timeAndIntervals;
^
In file included from /usr/local/include/asiodnp3/DNP3Manager.h:30:0,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/asiodnp3/IChannel.h:58:43: error: ‘function’ in namespace ‘std’ does not name a template type
virtual void AddStateListener(const std::function<void(opendnp3::ChannelState)>& listener) = 0;
^
/usr/local/include/asiodnp3/IChannel.h:58:51: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void AddStateListener(const std::function<void(opendnp3::ChannelState)>& listener) = 0;
^
In file included from /usr/local/include/asiodnp3/DNP3Manager.h:31:0,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/asiopal/SerialTypes.h: In constructor ‘asiopal::SerialSettings::SerialSettings()’:
/usr/local/include/asiopal/SerialTypes.h:67:12: error: ‘StopBits’ is not a class or namespace
stopBits(StopBits::ONE),
^
/usr/local/include/asiopal/SerialTypes.h:68:10: error: ‘ParityType’ is not a class or namespace
parity(ParityType::NONE),
^
/usr/local/include/asiopal/SerialTypes.h:69:12: error: ‘FlowType’ is not a class or namespace
flowType(FlowType::NONE),
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:0:
/usr/local/include/asiodnp3/DNP3Manager.h: At global scope:
/usr/local/include/asiodnp3/DNP3Manager.h:63:15: error: expected ‘)’ before ‘concurrencyHint’
uint32_t concurrencyHint,
^
/usr/local/include/asiodnp3/DNP3Manager.h:65:47: error: expected unqualified-id before ‘,’ token
std::function<void()> onThreadStart = []() {},
^
/usr/local/include/asiodnp3/DNP3Manager.h:67:2: error: expected unqualified-id before ‘)’ token
);
^
/usr/local/include/asiodnp3/DNP3Manager.h:90:6: error: ‘uint32_t’ has not been declared
uint32_t levels,
^
/usr/local/include/asiodnp3/DNP3Manager.h:94:6: error: ‘uint16_t’ has not been declared
uint16_t port);
^
/usr/local/include/asiodnp3/DNP3Manager.h:108:6: error: ‘uint32_t’ has not been declared
uint32_t levels,
^
/usr/local/include/asiodnp3/DNP3Manager.h:111:6: error: ‘uint16_t’ has not been declared
uint16_t port);
^
/usr/local/include/asiodnp3/DNP3Manager.h:124:6: error: ‘uint32_t’ has not been declared
uint32_t levels,
^
/usr/local/include/asiodnp3/DNP3Manager.h:184:7: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<ManagerImpl> impl;
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:22:0:
/usr/local/include/asiodnp3/PrintingSOEHandler.h:48:119: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::Binary>>& values) override final;
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:22:0:
/usr/local/include/asiodnp3/PrintingSOEHandler.h:49:128: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::DoubleBitBinary>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:50:119: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::Analog>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:51:120: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::Counter>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:52:126: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::FrozenCounter>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:53:131: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::BinaryOutputStatus>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:54:131: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::AnalogOutputStatus>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:55:124: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::OctetString>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:56:128: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::TimeAndInterval>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:57:131: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::BinaryCommandEvent>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:58:131: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::AnalogCommandEvent>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:59:125: error: ‘>>’ should be ‘> >’ within a nested template argument list
virtual void Process(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<opendnp3::SecurityStat>>& values) override final;
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:70:104: error: ‘>>’ should be ‘> >’ within a nested template argument list
static void PrintAll(const opendnp3::HeaderInfo& info, const opendnp3::ICollection<opendnp3::Indexed<T>>& values)
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:80:70: error: ‘uint16_t’ has not been declared
static void Print(const opendnp3::HeaderInfo& info, const T& value, uint16_t index)
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:96:45: error: ‘opendnp3::TimestampMode’ has not been declared
static std::string GetTimeString(opendnp3::TimestampMode tsmode)
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h: In static member function ‘static void asiodnp3::PrintingSOEHandler::PrintAll(const opendnp3::HeaderInfo&, const opendnp3::ICollection<opendnp3::Indexed<T> >&)’:
/usr/local/include/asiodnp3/PrintingSOEHandler.h:72:8: error: ‘print’ does not name a type
auto print = [&](const opendnp3::Indexed<T>& pair)
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:76:22: error: ‘print’ was not declared in this scope
values.ForeachItem(print);
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h: In static member function ‘static std::__cxx11::string asiodnp3::PrintingSOEHandler::GetTimeString(int)’:
/usr/local/include/asiodnp3/PrintingSOEHandler.h:101:18: error: ‘opendnp3::TimestampMode’ has not been declared
case(opendnp3::TimestampMode::SYNCHRONIZED) :
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:104:18: error: ‘opendnp3::TimestampMode’ has not been declared
case(opendnp3::TimestampMode::UNSYNCHRONIZED) :
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h: In static member function ‘static std::__cxx11::string asiodnp3::PrintingSOEHandler::ValueToString(const opendnp3::DoubleBitBinary&)’:
/usr/local/include/asiodnp3/PrintingSOEHandler.h:117:43: error: ‘const class opendnp3::DoubleBitBinary’ has no member named ‘value’
return opendnp3::DoubleBitToString(meas.value);
^
/usr/local/include/asiodnp3/PrintingSOEHandler.h:117:48: error: ‘opendnp3::DoubleBitToString’ cannot be used as a function
return opendnp3::DoubleBitToString(meas.value);
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:23:0:
/usr/local/include/asiodnp3/ConsoleLogger.h: At global scope:
/usr/local/include/asiodnp3/ConsoleLogger.h:51:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
static std::shared_ptr<openpal::ILogHandler>Create()
^
/usr/local/include/asiodnp3/ConsoleLogger.h:60:7: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex mutex;
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:24:0:
/usr/local/include/asiodnp3/DefaultMasterApplication.h:39:37: error: ‘opendnp3::MasterTaskType’ has not been declared
virtual void OnTaskStart(opendnp3::MasterTaskType type, opendnp3::TaskId id) override final {}
^
/usr/local/include/asiodnp3/DefaultMasterApplication.h:48:59: error: ‘WriteHeaderFunT’ in namespace ‘opendnp3’ does not name a type
virtual void ConfigureAssignClassRequest(const opendnp3::WriteHeaderFunT& fun) override final {}
^
/usr/local/include/asiodnp3/DefaultMasterApplication.h:52:39: error: ‘opendnp3::LinkStatus’ has not been declared
virtual void OnStateChange(opendnp3::LinkStatus value) override final {}
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:25:0:
/usr/local/include/asiodnp3/PrintingCommandCallback.h:35:19: error: ‘CommandCallbackT’ in namespace ‘opendnp3’ does not name a type
static opendnp3::CommandCallbackT Get();
^
In file included from /usr/local/include/opendnp3/LogLevels.h:25:0,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:29:
/usr/local/include/openpal/logging/LogLevels.h:51:7: error: ‘int32_t’ does not name a type
const int32_t EVENT = 1 << 0;
^
/usr/local/include/openpal/logging/LogLevels.h:52:7: error: ‘int32_t’ does not name a type
const int32_t ERR = 1 << 1;
^
/usr/local/include/openpal/logging/LogLevels.h:53:7: error: ‘int32_t’ does not name a type
const int32_t WARN = 1 << 2;
^
/usr/local/include/openpal/logging/LogLevels.h:54:7: error: ‘int32_t’ does not name a type
const int32_t INFO = 1 << 3;
^
/usr/local/include/openpal/logging/LogLevels.h:55:7: error: ‘int32_t’ does not name a type
const int32_t DBG = 1 << 4;
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:29:0:
/usr/local/include/opendnp3/LogLevels.h:30:29: error: ‘int32_t’ was not declared in this scope
const char* LogFlagToString(int32_t flag);
^
/usr/local/include/opendnp3/LogLevels.h:36:7: error: ‘int32_t’ does not name a type
const int32_t EVENT = openpal::logflags::EVENT;
^
/usr/local/include/opendnp3/LogLevels.h:37:7: error: ‘int32_t’ does not name a type
const int32_t ERR = openpal::logflags::ERR;
^
/usr/local/include/opendnp3/LogLevels.h:38:7: error: ‘int32_t’ does not name a type
const int32_t WARN = openpal::logflags::WARN;
^
/usr/local/include/opendnp3/LogLevels.h:39:7: error: ‘int32_t’ does not name a type
const int32_t INFO = openpal::logflags::INFO;
^
/usr/local/include/opendnp3/LogLevels.h:40:7: error: ‘int32_t’ does not name a type
const int32_t DBG = openpal::logflags::DBG;
^
/usr/local/include/opendnp3/LogLevels.h:44:7: error: ‘int32_t’ does not name a type
const int32_t LINK_RX = DBG << 1;
^
/usr/local/include/opendnp3/LogLevels.h:45:7: error: ‘int32_t’ does not name a type
const int32_t LINK_RX_HEX = DBG << 2;
^
/usr/local/include/opendnp3/LogLevels.h:47:7: error: ‘int32_t’ does not name a type
const int32_t LINK_TX = DBG << 3;
^
/usr/local/include/opendnp3/LogLevels.h:48:7: error: ‘int32_t’ does not name a type
const int32_t LINK_TX_HEX = DBG << 4;
^
/usr/local/include/opendnp3/LogLevels.h:50:7: error: ‘int32_t’ does not name a type
const int32_t TRANSPORT_RX = DBG << 5;
^
/usr/local/include/opendnp3/LogLevels.h:51:7: error: ‘int32_t’ does not name a type
const int32_t TRANSPORT_TX = DBG << 6;
^
/usr/local/include/opendnp3/LogLevels.h:53:7: error: ‘int32_t’ does not name a type
const int32_t APP_HEADER_RX = DBG << 7;
^
/usr/local/include/opendnp3/LogLevels.h:54:7: error: ‘int32_t’ does not name a type
const int32_t APP_HEADER_TX = DBG << 8;
^
/usr/local/include/opendnp3/LogLevels.h:56:7: error: ‘int32_t’ does not name a type
const int32_t APP_OBJECT_RX = DBG << 9;
^
/usr/local/include/opendnp3/LogLevels.h:57:7: error: ‘int32_t’ does not name a type
const int32_t APP_OBJECT_TX = DBG << 10;
^
/usr/local/include/opendnp3/LogLevels.h:59:7: error: ‘int32_t’ does not name a type
const int32_t APP_HEX_RX = DBG << 11;
^
/usr/local/include/opendnp3/LogLevels.h:60:7: error: ‘int32_t’ does not name a type
const int32_t APP_HEX_TX = DBG << 12;
^
/usr/local/include/opendnp3/LogLevels.h:67:7: error: ‘int32_t’ does not name a type
const int32_t NOTHING = 0;
^
/usr/local/include/opendnp3/LogLevels.h:68:7: error: ‘int32_t’ does not name a type
const int32_t ALL = ~NOTHING;
^
/usr/local/include/opendnp3/LogLevels.h:69:7: error: ‘int32_t’ does not name a type
const int32_t NORMAL = flags::EVENT | flags::ERR | flags::WARN | flags::INFO;
^
/usr/local/include/opendnp3/LogLevels.h:70:7: error: ‘int32_t’ does not name a type
const int32_t ALL_APP_COMMS = flags::APP_HEADER_RX | flags::APP_HEADER_TX | flags::APP_OBJECT_RX | flags::APP_OBJECT_TX | flags::APP_HEX_RX | flags::APP_HEX_TX;
^
In file included from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:29:0:
/usr/local/include/opendnp3/LogLevels.h:71:7: error: ‘int32_t’ does not name a type
const int32_t ALL_COMMS = flags::LINK_RX | flags::LINK_TX | flags::TRANSPORT_RX | flags::TRANSPORT_TX | ALL_APP_COMMS;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp: In function ‘int main(int, char**)’:
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:42:8: error: ‘uint32_t’ does not name a type
const uint32_t FILTERS = levels::NORMAL | levels::ALL_APP_COMMS;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:45:25: error: ‘Create’ is not a member of ‘asiodnp3::ConsoleLogger’
DNP3Manager manager(1, ConsoleLogger::Create());
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:48:7: error: ‘pChannel’ does not name a type
auto pChannel = manager.AddTCPClient("tcpclient", FILTERS, ChannelRetry::Default(), "127.0.0.1", "0.0.0.0", 20000);
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:52:2: error: ‘pChannel’ was not declared in this scope
pChannel->AddStateListener([](ChannelState state)
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:52:32: error: ‘ChannelState’ has not been declared
pChannel->AddStateListener([](ChannelState state)
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp: In lambda function:
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:54:63: error: ‘opendnp3::ChannelStateToString’ cannot be used as a function
std::cout << "channel state: " << ChannelStateToString(state) << std::endl;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp: In function ‘int main(int, char**)’:
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:55:2: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:68:19: error: ‘struct opendnp3::LinkConfig’ has no member named ‘LocalAddr’
stackConfig.link.LocalAddr = 1;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:69:19: error: ‘struct opendnp3::LinkConfig’ has no member named ‘RemoteAddr’
stackConfig.link.RemoteAddr = 10;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:74:7: error: ‘master’ does not name a type
auto master = pChannel->AddMaster(
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:83:7: error: ‘integrityScan’ does not name a type
auto integrityScan = master->AddClassScan(ClassField::AllClasses(), TimeDuration::Minutes(1));
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:86:7: error: ‘exceptionScan’ does not name a type
auto exceptionScan = master->AddClassScan(ClassField(ClassField::CLASS_1), TimeDuration::Seconds(2));
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:89:2: error: ‘master’ was not declared in this scope
master->Enable();
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:110:43: error: no matching function for call to ‘opendnp3::GroupVariationID::GroupVariationID(int, int)’
master->ScanRange(GroupVariationID(1, 2), 0, 3);
^
In file included from /usr/local/include/opendnp3/master/HeaderTypes.h:27:0,
from /usr/local/include/opendnp3/master/IMasterApplication.h:27,
from /usr/local/include/asiodnp3/IChannel.h:29,
from /usr/local/include/asiodnp3/DNP3Manager.h:30,
from /home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:21:
/usr/local/include/opendnp3/app/GroupVariationID.h:32:2: note: candidate: opendnp3::GroupVariationID::GroupVariationID()
GroupVariationID() : group(0xFF), variation(0xFF)
^
/usr/local/include/opendnp3/app/GroupVariationID.h:32:2: note: candidate expects 0 arguments, 2 provided
/usr/local/include/opendnp3/app/GroupVariationID.h:30:8: note: candidate: opendnp3::GroupVariationID::GroupVariationID(const opendnp3::GroupVariationID&)
struct GroupVariationID
^
/usr/local/include/opendnp3/app/GroupVariationID.h:30:8: note: candidate expects 1 argument, 2 provided
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:113:45: error: ‘FunctionCode’ has not been declared
master->PerformFunction("disable unsol", FunctionCode::DISABLE_UNSOLICITED,
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:114:4: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
{ Header::AllObjects(60, 2), Header::AllObjects(60, 3), Header::AllObjects(60, 4) }
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:119:10: error: ‘print’ does not name a type
auto print = [](const RestartOperationResult & result)
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:130:21: error: ‘RestartType’ has not been declared
master->Restart(RestartType::COLD, print);
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:130:40: error: ‘print’ was not declared in this scope
master->Restart(RestartType::COLD, print);
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:137:4: error: ‘integrityScan’ was not declared in this scope
integrityScan.Demand();
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:140:4: error: ‘exceptionScan’ was not declared in this scope
exceptionScan.Demand();
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:144:34: error: ‘ControlCode’ has not been declared
ControlRelayOutputBlock crob(ControlCode::LATCH_ON);
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:145:39: error: ‘Get’ is not a member of ‘asiodnp3::PrintingCommandCallback’
master->SelectAndOperate(crob, 0, PrintingCommandCallback::Get());
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:151:10: error: ‘levels’ does not name a type
auto levels = channelCommsLoggingEnabled ? levels::ALL_COMMS : levels::NORMAL;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:152:35: error: expected primary-expression before ‘)’ token
pChannel->SetLogFilters(levels);
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:153:55: error: expected primary-expression before ‘<<’ token
std::cout << "Channel logging set to: " << levels << std::endl;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:159:10: error: ‘levels’ does not name a type
auto levels = masterCommsLoggingEnabled ? levels::ALL_COMMS : levels::NORMAL;
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:160:33: error: expected primary-expression before ‘)’ token
master->SetLogFilters(levels);
^
/home/cwkhaleelahmed/dnp3/cpp/examples/master/main.cpp:161:54: error: expected primary-expression before ‘<<’ token
std::cout << "Master logging set to: " << levels << std::endl;
^

Adam Crain

unread,
Aug 3, 2016, 2:05:11 PM8/3/16
to automatak-dnp3
Hi Sameer,

If you want to build apps against opendnp3, you'll have to add a few things to your compilers command line.

1) --std=c++11

2) you have to link against openpal, asiopal, opendnp3, and asiodnp3 libraries.

I'd recommend running make with VERBOSE=1 and examining what the cmake generated makefile does when invoking the compiler/linker for building the demo apps.

-Adam
  const static StaticBinaryOutputStatusVariation DefaultStaticVariation = StaticBinaryOutputStatusVariation::Group10...
Reply all
Reply to author
Forward
0 new messages