eiffel:类型基于未知 class(即使在库中可见)

eiffel: type is based on unknown class (even when visible into libraries)

尝试包含我刚创建的库我无法使用 Class,即使它出现在 eiffel studio 的组视图中的库中也是如此

../thirdparty/moon_time/sunriset_lib.ecf

<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="sunriset" uuid="6E7AC452-4513-4BB4-9F04-A1ABCBCC1BE3" library_target="sunriset">
        <target name="sunriset">
                <root all_classes="true"/>
                <file_rule>
                        <exclude>/CVS$</exclude>
                        <exclude>/EIFGENs$</exclude>
                        <exclude>/\.git$</exclude>
                        <exclude>/\.svn$</exclude>
                </file_rule>
                <option warning="warning" manifest_array_type="mismatch_warning">
                        <assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
                </option>
                <setting name="console_application" value="true"/>
                <setting name="total_order_on_reals" value="false"/>
                <setting name="dead_code_removal" value="feature"/>
                <library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
                <library name="time" location="$ISE_LIBRARY\library\time\time.ecf"/>
                <cluster name="src" location=".\src\" recursive="true"/>
        </target>
        <target name="sunriset_tests" extends="sunriset">
                <root class="APPLICATION" feature="make"/>
                <option warning="warning">
                        <assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
                </option>
                <setting name="console_application" value="true"/>
                <library name="testing" location="$ISE_LIBRARY\library\testing\testing.ecf"/>
                <cluster name="test" location=".\testing\" recursive="true"/>
        </target>
</system>

main-raspi-app.ecf

<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="main_raspi_app" uuid="CC76847A-99AA-4FAE-A27F-CFBA76A914AF">
        <target name="raspi_data_visitor">
                <root class="RASPI_DATA_VISITOR_APP" feature="make"/>
                <file_rule>
                        <exclude>/CVS$</exclude>
                        <exclude>/EIFGENs$</exclude>
                        <exclude>/\.git$</exclude>
                        <exclude>/\.svn$</exclude>
                </file_rule>
                <option warning="warning" manifest_array_type="mismatch_warning">
                        <assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
                </option>
                <setting name="console_application" value="true"/>
                <setting name="executable_name" value="raspi_data_visitor"/>
                <setting name="dead_code_removal" value="feature"/>
                <library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
                <library name="json" location=".\..\thirdparty\json\library\json.ecf" readonly="false"/>
                <library name="sit-platform" location=".\..\sit-platform\sit_platform_lib.ecf" readonly="false"/>
                <library name="sunriset" location=".\..\thirdparty\moon_time\sunriset_lib.ecf" readonly="false"/>
                <cluster name="src" location=".\src\" recursive="true"/>
        </target>
        <target name="raspi_data_generator" extends="raspi_data_visitor">
                <root class="RASPI_DATA_GENERATOR_APP" feature="make"/>
        </target>
</system>

知道了!

由于 SOLAR_NRJ_ADVISOR class 是 sit-platform 的一部分,我不得不将库包含到 sit-platform library 而不是当前项目