C++ 为什么我会得到;错误1181“;什么时候编译makefile?

C++ 为什么我会得到;错误1181“;什么时候编译makefile?,c++,makefile,cl,C++,Makefile,Cl,生成文件 main: main.cpp detours/detours.lib CL /std:c++17 /EHsc /Fe:bin\test /I . /I detours/ /W2 /O2 /LD $** user32.lib 在我出错之后 LINK : fatal error LNK1181: cannot open input file "bin.obj" make: *** [Makefile:2: main] Error 2 他为什么要打开bin.obj?Bin是文件夹,CL不

生成文件

main: main.cpp detours/detours.lib
CL /std:c++17 /EHsc /Fe:bin\test /I . /I detours/ /W2 /O2 /LD $** user32.lib
在我出错之后

LINK : fatal error LNK1181: cannot open input file "bin.obj"
make: *** [Makefile:2: main] Error 2
他为什么要打开bin.obj?Bin是文件夹,CL不从Bin创建obj。 如何解决这个问题

Upd,这是来自makefile的完整代码。第二行有表格。在这里,我从输出中删除了bin文件夹

main: main.cpp detours/detours.lib
    CL /std:c++17 /EHsc /Fe:test /I . /I detours/ /W2 /O2 /LD $** user32.lib
若我从makefile的输出中删除bin文件夹,并从目录中删除该文件夹,我会得到错误
链接:致命错误LNK1181:无法打开输入文件“detours.obj”

输出

make -f Makefile
CL /std:c++17 /EHsc /Fe:test /I . /I detours/ /W2 /O2 /LD * user32.lib
Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28107 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
main.cpp
Microsoft (R) Incremental Linker Version 14.23.28107.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:test.dll
/dll
/implib:test.lib
detours
helper.h
main.obj
main.obj
Makefile
packets.h
functions.h
user32.lib
LINK : fatal error LNK1181: cannot open input file 'detours.obj'
make: *** [Makefile:2: main] Error 2

我的水晶球说你没有
bin
目录。另外,
/Fe
选项没有将
作为参数。@Botje您可以看到图像。我有垃圾箱文件夹@drescherjm,我删除了
,然后得到下一个错误
链接:致命错误LNK1181:无法打开输入文件“bin\test.obj”
我在
bin
之间添加了空格,我得到了第一个错误。@Botje请逐字发布您的makefile(不能显示为缺少缩进,这会阻止它的执行). 我怀疑有什么我们看不到的东西,也许是隐藏的字符或额外的空间。cl似乎认为
bin\test
是一种输入。