Ambiguous use of name - CO136

tbambrough
2018-05-16
2024-07-06
  • tbambrough - 2018-05-16

    When I added dynamic memory allocation to my project (CodeSys 3.5.12.10), I receive the following two errors that I cannot find how to resolve.

                ------ Build started: Application: Device.Application -------
                typify code ...
    

    [ERROR] Dillution Station: C0136: ambiguous use of name 'LinearMemoryManager'
    [ERROR] Dillution Station: C0138: No matching FB_init method found for instantiation of LinearMemoryManager
    Compile complete -- 2 errors, 24 warnings

    Any ideas?

     
  • tbambrough - 2018-05-18

    The issue is related to the inclusion of the VisuElemBase library.

    The issue can be reproduced by:
    1) Create standard application
    2) Enable Dynamic memory
    3) Add VisuElemBase library

    Compile the application

     
  • asnik - 2020-01-17

    The same trouble with 3.5.14.30.
    C0136: ambiguous use of name 'LinearMemoryManager' during compilation with VisuElemBase.
    How to resolve?

     
  • asnik - 2020-04-20

    Still no progress from anybody?

     
  • Thomas - 2020-04-20

    Hi, set the option "Qualified only" at the library you add.
    == >> You must use the namespace in your code like "nbs.IPSTRING_TO_INT"

    Regards

     
    πŸ‘
    1
    • asnik - 2020-04-20

      Yes, it did the trick)) Thomas, thank you so much!

       
  • marek71 - 2024-07-06

    My PLC is WAGO PFC200 Firmware Revision 26. target After updating WAGO_Devices_and_Libraries with newer Firmware 27, CODESYS wants to update all libraries to new versions. I will only add that I did not update the Firmware in the PLC.
    After compiling the program, I received the following errors:
    ------ Build started: Application: Device.Application -------
    Typify code...
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): FbSerialInterface_internal: C0136: Ambiguous use of name 'RTS_IEC_HANDLE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): FbSerialInterface_internal: C0136: Ambiguous use of name 'RTS_IEC_RESULT'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): Initialize [FbSerialInterface_internal]: C0032: Cannot convert type 'Unknown type: 'RTS_INVALID_HANDLE'' to type 'POINTER TO BYTE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): Initialize [FbSerialInterface_internal]: C0136: Ambiguous use of name 'RTS_INVALID_HANDLE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): Initialize [FbSerialInterface_internal]: C0046: Identifier 'RTS_INVALID_HANDLE' not defined
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_is_tx_empty: C0136: Ambiguous use of name 'RTS_IEC_HANDLE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_get_line_state: C0136: Ambiguous use of name 'RTS_IEC_HANDLE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_is_line_available: C0136: Ambiguous use of name 'RTS_IEC_HANDLE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): COMSW_SET_MODE: C0136: Ambiguous use of name 'RTS_IEC_HANDLE'
    [ERROR] wagosyscom_internal_pfc, 1.0.2.5 (wago): comextra_set_line_state: C0136: Ambiguous use of name 'RTS_IEC_HANDLE'
    Compile complete -- 10 errors, 0 warnings
    Build complete -- 10 errors, 0 warnings : No download possible

    The problem was caused by the WagoSysPlainMem(WAGO) library in the original version 1.5.3.0 after updating to 1.5.3.1.

    After returning to version 1.5.3.0, the problems disappeared.
    Probably the version number of this library is responsible for supporting the appropriate Firmware Revision.
    Can anyone confirm or deny my suspicions?

     

Log in to post a comment.