Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-679

Compiling the viewer / inventory code gives minor link error

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Sprint 8, Viewer 2.4.0
    • Labels:
      None
    • Environment:

      Description

      The compiler (VS 2005 on Windows XP) gives:

      llinventory.obj : warning LNK4006: "unsigned char const TASK_INVENTORY_ASSET_KEY" (?TASK_INVENTORY_ASSET_KEY@@3EB) already defined in llinventorydefines.obj; second definition ignored

      A grep for TASK_INVENTORY_ASSET_KEY gives:

      ./llinventory/llinventory.cpp:const U8 TASK_INVENTORY_ASSET_KEY = 1;
      ./llinventory/llinventorydefines.cpp:const U8 TASK_INVENTORY_ASSET_KEY = 1;
      ./llinventory/llinventorydefines.h:extern const U8 TASK_INVENTORY_ASSET_KEY;
      ./newview/llviewerobject.cpp: else if(TASK_INVENTORY_ASSET_KEY == key)

      Both inventory.cpp files include llinventorydefines.h

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jonathan.yap Jonathan Yap
              Extended Group Visibility:
              jira-users
              Prod Owner Approved:
              Q Linden (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: