Lib 规则在 b2 中发出“警告:对象为空”

问题描述 投票:0回答:1

当我尝试构建使用

lib
规则定义的目标时,如下所示:

lib LibB : $(SOURCES) $(LIBS)
         : <link>static ;

b2 给出此警告:

warning: object is empty
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\generators.jam:1067: in try-one-generator-really
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\generators.jam:1129: in try-one-generator
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\generators.jam:1367: in construct-really
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\generators.jam:1453: in generators.construct
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\targets.jam:1656: in construct
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\targets.jam:1408: in [email protected]
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\targets.jam:832: in generate-really
D:/dev/External/Boost/boost_1_84_0/tools/build/src/build\targets.jam:804: in [email protected]
D:/dev/External/Boost/boost_1_84_0/tools/build/src\build-system.jam:805: in load
D:/dev/External/Boost/boost_1_84_0/tools/build/src/kernel\modules.jam:294: in import
D:/dev/External/Boost/boost_1_84_0/tools/build/src/kernel/bootstrap.jam:135: in module scope
WARNING: Unable to construct ./LibB of type LIB with these properties: <address-model>64 <architecture>x86 <asynch-exceptions>off <coverage>off <cxxflags>/wd4290 /wd4800 <cxxstd-dialect>iso <cxxstd>20 <debug-store>object <debug-symbols>on <define>ACTCUT_BEFORE_4 <define>BOOST_ALL_NO_LIB <define>BOOST_SYSTEM_NO_DEPRECATED <define>NOMINMAX <define>WINVER=0x0A00 <define>_CRT_NONSTDC_NO_DEPRECATE <define>_CRT_SECURE_NO_DEPRECATE <define>_HAS_AUTO_PTR_ETC=1 <define>_HAS_STD_BYTE=0 <define>_SCL_SECURE_NO_WARNINGS <define>_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING <define>_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING <define>_WIN32_WINNT=0x0A00 <define>__USER_DEVILLERS__ <define>__USER_devillers__ <dll-path>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/build/bin_x64/debug <dll-path>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/build/redist/bin_x64/debug <dll-path>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/import/bin_x64/debug <dll-path>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/import/redist/bin_x64/debug <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>windows <include>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project <include>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/dep <include>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/dep/Arrow <include>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/dep/CommonTools <include>/D:/dev/DevTools/wrapper_gen/wrapper_gen/test/project/dep/GeomCAM <include>/D:/dev/External/Boost/boost_1_84_0 <inlining>off <install-dependencies>off <library-path>/D:/dev/External/Boost/boost_1_84_0/lib64-msvc-14.3 <library>object(file-target)@532 <library>object(file-target)@599 <library>object(file-target)@722 <link>static <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>address-model <relevant>address-sanitizer <relevant>architecture <relevant>asynch-exceptions <relevant>cxxflags:<relevant>toolset <relevant>cxxstd <relevant>cxxstd-dialect <relevant>debug-store <relevant>debug-symbols <relevant>define:<relevant>cxxstd <relevant>define:<relevant>target-os <relevant>define:<relevant>toolset <relevant>dll-path:<relevant>address-model <relevant>dll-path:<relevant>target-os <relevant>dll-path:<relevant>variant <relevant>exception-handling <relevant>extern-c-nothrow <relevant>inlining <relevant>instruction-set <relevant>library-path:<relevant>address-model <relevant>library-path:<relevant>target-os <relevant>link <relevant>lto <relevant>lto-mode <relevant>optimization <relevant>pch <relevant>rtti <relevant>runtime-debugging <relevant>runtime-link <relevant>target-os <relevant>threading <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>toolset <relevant>toolset-msvc:vendor <relevant>toolset-msvc:version <relevant>variant <relevant>warnings <relevant>warnings-as-errors <relevant>windows-api <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<D:\dev\DevTools\wrapper_gen\wrapper_gen\test\project>%alma.alma-tag <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>14.3 <toolset>msvc <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on <windows-api>desktop
WARNING: Considered these as possible generators:
WARNING: builtin.lib-generator with source types { } and requirements { }
...found 1 target...

这是什么意思?

bjam boost-build b2 jam
1个回答
0
投票

这可能意味着规则

lib
没有找到C++源代码,即看起来你的变量
SOURCES
是空的。

© www.soinside.com 2019 - 2024. All rights reserved.