Project

General

Profile

整備 #4105

PublisherPeriodic、PublisherNewの列挙型Policyの問題

Added by n-miyamoto over 4 years ago. Updated over 4 years ago.

Status:
終了
Priority:
高め
Assignee:
Target version:
-
Start date:
05/24/2017
Due date:
05/31/2017
% Done:

100%

Estimated time:

Description

VxWorksでビルドした際にPublisherPeriodic、PublisherNewで以下のエラーが発生します。

/home/openrtm/testRTM/rtm/../rtm/PublisherNew.h:435: error: expected identifier before numeric constant
/home/openrtm/testRTM/rtm/../rtm/PublisherNew.h:435: error: expected `}' before numeric constant
/home/openrtm/testRTM/rtm/../rtm/PublisherNew.h:435: error: expected unqualified-id before numeric constant

列挙型Policyのメンバ値ALLの名前を変更したらエラーは消えます。
見たところどこかでALLという名前の定数がdefineで定義されており、ALLが数値に置き換わっているためこのようなエラーが発生しているようです。

Associated revisions

Revision 2994 (diff)
Added by miyamoto over 4 years ago

[incompat] support VxWorks. refs #4105

Revision 2994 (diff)
Added by miyamoto over 4 years ago

[incompat] support VxWorks. refs #4105

History

#1 Updated by n-miyamoto over 4 years ago

  • Description updated (diff)

#2 Updated by n-miyamoto over 4 years ago

  • Status changed from 新規 to 解決
  • Assignee set to n-miyamoto
  • % Done changed from 0 to 100

以下のように変更

    enum Policy
      {
        PUBLISHER_POLICY_ALL,
        PUBLISHER_POLICY_FIFO,
        PUBLISHER_POLICY_SKIP,
        PUBLISHER_POLICY_NEW
      };

#3 Updated by n-ando over 4 years ago

  • Status changed from 解決 to 終了

ありがとうございました。

Also available in: Atom PDF