Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Compile errors C0180: Ambiguous namespace C0136: ambigous use of name

S1ack
2019-09-17
2019-09-17
  • S1ack

    S1ack - 2019-09-17

    For 'reasons' I have 4 version of Codesys 3.5 installed.
    (1) is a third party 'wrapper' similar to what Wago does 'eCockpit' but it's not eCockpit. This is based on 3.5 SP9 Patch 1 (or so I am told).
    The rest are 'vanilla' codesys from 3S.
    SP9 Patch 1
    SP14 Patch 3
    SP15

    I was working yesterday in the third party flavor, and thought I'd like to try the project in SP15, so I archived from third party, and extracted archive into SP15. Developed for a while and lost track of time. When I got these errors in SP15, I reverted to the third party program, a revision of the project just before I Save/Sent the archive.

    The errors below occur in the original project, on the third party wrapper development environment. I do not immediately understand what they are telling me, but they appear to imply that libraries are somehow messed up, and the compiler (still at 3.5 sp9) does not know what library to use??

    The project compiles fine on another computer that also has the 4 flavors of codesys installed - but never have I Saved/Extracted an archive of this project between versions on it.

    Before I uninstall them all I though I'd ask here.
    Any help greatly appreciated.

                   ------ Build started: Application: Enclosure_PAC.Application -------
                    typify code ...
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'CMPEVENTMGR' defined by library 'CmpEventMgr, 3.5.8.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'CMPEVENTMGR' defined by library 'CmpEventMgr, * (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager: C0180:  Ambiguous namespace 'CMPEVENTMGR' defined by library 'CmpEventMgr, 3.5.8.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'COMPONENT_MANAGER' defined by library 'Component Manager, 3.5.9.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'COMPONENT_MANAGER' defined by library 'Component Manager, * (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager: C0180:  Ambiguous namespace 'COMPONENT_MANAGER' defined by library 'Component Manager, 3.5.9.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'CMPAPP' defined by library 'CmpApp, 3.5.9.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'CMPAPP' defined by library 'CmpApp, * (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager: C0180:  Ambiguous namespace 'CMPAPP' defined by library 'CmpApp, 3.5.9.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'CMPIECTASK' defined by library 'CmpIecTask, 3.5.9.0 (System)'
    [ERROR]         PAC_C&I_700201_066: Library Manager [Enclosure_PAC: PLC Logic: Application]: C0180:  Ambiguous namespace 'CMPIECTASK' defined by library 'CmpIecTask, * (System)'
    [ERROR]         PAC_C&I_700201_066: C0136:  ambigous use of name 'ICmpEventCallback'
    [INFORMATION]   cmpeventmgr, 3.5.14.0 (system): ICmpEventCallback: C0181:  Related Position
    [INFORMATION]   cmpeventmgr, 3.5.8.0 (system): ICmpEventCallback: C0181:  Related Position
    [ERROR]         PAC_C&I_700201_066: Task Configuration [Enclosure_PAC: PLC Logic: Application](Task Configuration): C0136:  ambigous use of name 'EventParam'
    [INFORMATION]   cmpeventmgr, 3.5.14.0 (system): EventParam: C0181:  Related Position
    [INFORMATION]   cmpeventmgr, 3.5.8.0 (system): EventParam: C0181:  Related Position
    [ERROR]         PAC_C&I_700201_066: Task Configuration [Enclosure_PAC: PLC Logic: Application](Task Configuration): C0032:  Cannot convert type '__SYSTEMEVENTHANDLERFB' to type 'ICmpEventCallback(cmpeventmgr, 3.5.14.0 (system))'
                    Compile complete -- 14 errors, 0 warnings
    

    IMG: Bild

     
  • S1ack

    S1ack - 2019-09-17

    Nevermind.

    After calming down, it is all explained pretty well on various internet pages.
    I am back to having a working application.

     

Log in to post a comment.