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

Ambiguous use of name - CO136

tbambrough
2018-05-16
2020-04-20
  • 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!

       

Log in to post a comment.