【发布时间】:2016-06-05 14:35:05
【问题描述】:
我知道已经有几篇关于此的帖子,但我似乎根本无法弄清楚这一点。
我从网站(Eclipse for C++)下载了 Eclipse,它下载了 Eclipse mars 等。我尝试使用示例 hello world 项目来查看它是否有效,但我一直在启动失败。找不到二进制错误。
我已经下载了 XCode(不知道为什么,但我读到我需要 GCC 或其他东西) 我正在使用 MacOS GCC,也尝试了其他 GCC,但都给了我同样的错误
请有人帮助我并询问我需要提供的任何详细信息...
生成文件...
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: lolplz
# Tool invocations
lolplz: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: Cross G++ Linker'
g++ -o "lolplz" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) lolplz
-@echo ' '
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets
【问题讨论】:
-
嗨,我确实声明有几篇关于此的帖子,其中包括您提供的以下链接。我需要针对我的案子的具体帮助,但这对我没有帮助
-
链接中的简单答案是原因-找不到二进制文件,因为它没有被构建。查看您的屏幕截图,它清楚地表明 make all 什么也没做。你能分享你的makefile吗?
-
尝试点击锤子旁边的小齿轮图标。你会看到两种选择:一种是Debug,另一种是Release;其中之一被选中(我假设释放)。选择另一个,单击锤子再次构建项目,然后单击绿色箭头尝试运行项目。希望这会有所帮助。