簡體   English   中英

埃菲爾:類型基於未知的 class(即使在庫中可見)

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

嘗試包含我剛剛創建的庫我無法讓 Class 可用,即使它出現在埃菲爾工作室的組視圖中的庫中

在此處輸入圖像描述

../第三方/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 是 sat sit-platform的一部分,我不得不將該庫包含到sit-platform而不是當前項目中在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM