mutual dependencies

  • Faranwannsee

    Faranwannsee - 2007-12-06

    Hi all!
    I have a little problem with mutual dependency. A short example for the problem is the following:


    package Hallo1;
    use Hallo2;


    package Hallo2;
    use Hallo1; #<<<Warning: "Compilation failed in require"

    In this situation, EPIC warns me at the marked line. Why?
    Can anybody help me?


    PS: I'm using Eclipse 3.2.2, EPIC 0.6.17. Preferences: Enable Warnings ON / Enable taint mode OFF / Enable debugger console OFF / Suspend debugger at first statement ON / Enable Critic OFF ...

    • Jan Ploski

      Jan Ploski - 2007-12-06

      Have you done Project/Clean...?

    • Faranwannsee

      Faranwannsee - 2007-12-07

      Hey, it works!!! THANK YOU!! But why this works?

      • Jan Ploski

        Jan Ploski - 2007-12-07

        It works because it forces EPIC to compile every Perl file in the project. Normally, compilation is only performed for files when they are updated, which does not take into account that other files may be also affected by changes. This is a "known problem" in EPIC, which is difficult to solve in general, but as you can see there is an easy workaround.


Log in to post a comment.