C0077 on one machine but not another

2024-06-11
2024-06-11
  • installwhat - 2024-06-11

    I have a version of codesys 3.5.16 on my local machine and a vm. The local machine has loads of codesys versions and libraries installed etc.

    I can open the FPosCR_Example_Project_SP16_patch1 project on my vm without any errors. On the local machine I get the error C0077: unknown type IoDrvEthercatLib.ETC_CO_SdoWrite.

    I can, on the local machine, declare a var of type IoDrvEthercatLib.ETC_CO_SdoWrite and include it in the code without adding an extra error. The problem only seems to affect the library. This is seems more an issue with my codesys set up rather than something with festo.

    I would like to know the possible causes. I understand most of the library manager features but it's not clear how to find the cause.

    Thanks

     

    Last edit: installwhat 2024-06-11
  • installwhat - 2024-06-11

    https://forge.codesys.com/forge/talk/Engineering/thread/92c913bf7c/

    Solved by changing the ethercat master version after reading the thread linked above.

    I think I need to read up on why this happened. I understand that placeholders should point to a particular version for obvious reasons however what has occurred in this instance is different.

    The example project was released as a "project archive" but it seems to load differently based on what I've got installed in my repositories. I'm going to dig into that tomorrow but any advice is welcome.

     
  • installwhat - 2024-06-11

    It doesn't load differently codesys seems to be behaving differently.
    Original version of ethercat master in project archive is 3.5.15.50, compiler is 16.4 as is codesys I'm using.
    It builds fine in vm and not on local machine. The reason is not obvious. It builds on local machine with ethercat master at 3.5.16.0.

    I'd really appreciate advice

     

    Last edit: installwhat 2024-06-11
  • installwhat - 2024-06-11

    someone needs to add some js to stop repeated posts

     

    Last edit: installwhat 2024-06-11

Log in to post a comment.