gpt4 book ai didi

c++ - .so build error coming - 请建议(eclipse CDT cygwin)

转载 作者:太空宇宙 更新时间:2023-11-04 14:27:28 25 4
gpt4 key购买 nike

**** 为项目 myso 构建配置调试 ****

让所有

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

最佳答案

您发布的 makefile(希望我的格式正确)引用了另一个 makefile,而另一个 makefile 的内容可能很重要。但是,您的问题似乎是 filename.d is found in a path with spaces ,并且该路径出现在 $(OBJS)$(USER_OBJS) 中(可能在 ../makefile.targets 中定义) .

编辑 It looks like this is a problem that has been fixed in some version of Make, but not yours (参见“在 Cygwin 上编译”)。

关于c++ - .so build error coming - 请建议(eclipse CDT cygwin),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2680604/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com