.so 构建错误来了 - 请建议(eclipse CDT cygwin)
**** 项目 myso 的配置调试构建 ****
make all
filename.d:1: *** 多个目标模式。停止。
生成文件如下所示:
# All Target
all: libmyso.so
# Tool invocations
libmyso.so: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C++ Linker'
g++ -L"E:\cygwin\lib" -shared -o"libmyso.so"
$(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(OBJS)$(C++_DEPS)$(C_DEPS)$(CC_DEPS)$(LIBRARIES)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) libmyso.so
-@echo ' '
.PHONY:所有干净的依赖项 .SECONDARY:-include ../makefile.targets
**** Build of configuration Debug for project myso ****
make all
filename.d:1: *** multiple target patterns. Stop.
The makefile looks like:
# All Target
all: libmyso.so
# Tool invocations
libmyso.so: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C++ Linker'
g++ -L"E:\cygwin\lib" -shared -o"libmyso.so"
$(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(OBJS)$(C++_DEPS)$(C_DEPS)$(CC_DEPS)$(LIBRARIES)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS) libmyso.so
-@echo ' '
.PHONY: all clean dependents
.SECONDARY: -include ../makefile.targets
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您发布的 makefile(我希望格式正确)引用了另一个 makefile,并且其他 makefile 的内容可能很重要。但是,您的问题似乎是
filename.d< /code> 位于带有空格
的路径中,该路径出现在
$(OBJS)
或$(USER_OBJS)
中(可能在../makefile.targets
)。编辑 看起来这个问题已在某些版本的 Make,但不是您的(请参阅“在 Cygwin 上编译”)。
The makefile that you posted (I hope I got the formatting correct) refers to another makefile, and the contents of that other makefile are probably important. However, it appears that your problem is that
filename.d
is found in a path with spaces, and that path is what appears in either$(OBJS)
or$(USER_OBJS)
(probably defined in../makefile.targets
).EDIT It looks like this is a problem that has been fixed in some version of Make, but not yours (see "Compiling on Cygwin").