Multiple makefile errrors [message #1822017] |
Tue, 25 February 2020 14:25  |
Eclipse User |
|
|
|
I am a new user of Eclipse. (I have been using Builder from Embarcadero.) I thought I installed Eclipse successfully, but when I try to create the HelloWorld project, it fails to build. I get the following message pasted below. For what it's worth, I'm following the directions in
https://www.codeguru.com/cpp/cpp/getting-started-with-c-for-eclipse.html
which are consistent with the directions in the "Creating a Simple Project" in Eclipse - Help but are more detailed and complete and include directions for installing MinGW.
What's going on? What have I omitted? What am I doing wrong? All help will be appreciated.
Samuel J
14:07:46 **** Build of configuration Debug for project HelloWorld ****
make all
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
Error makefile 6: Command syntax error
Error makefile 11: Command syntax error
Error makefile 12: Command syntax error
Error makefile 13: Command syntax error
Error makefile 14: Command syntax error
Error makefile 16: Command syntax error
Error makefile 17: Command syntax error
Error makefile 18: Command syntax error
Error makefile 19: Command syntax error
Error makefile 20: Command syntax error
Error makefile 21: Command syntax error
Error makefile 22: Command syntax error
Error makefile 23: Command syntax error
Error makefile 24: Command syntax error
Error makefile 25: Command syntax error
Error makefile 26: Command syntax error
Error makefile 27: Command syntax error
Error makefile 28: Command syntax error
Error makefile 29: Command syntax error
Error makefile 30: Command syntax error
Error makefile 31: Command syntax error
Error makefile 32: Command syntax error
Error makefile 33: Command syntax error
Error makefile 34: Command syntax error
Error makefile 35: Command syntax error
Error makefile 37: Command syntax error
Error makefile 59: Command syntax error
*** 27 errors during make ***
"make all" terminated with exit code 1. Build might be incomplete.
[Updated on: Sat, 29 February 2020 16:05] by Moderator
|
|
|
|
|
|
Re: Multiple makefile errrors [message #1822203 is a reply to message #1822030] |
Sat, 29 February 2020 15:35   |
Eclipse User |
|
|
|
I found the makefile, which was generated automatically. Since it's short, I'll paste it below. Do you see what's wrong with it? Thanks.
=====================
################################################################################
# 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: HelloWorld
# Tool invocations
HelloWorld: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: Cross G++ Linker'
mingw32-g++ -o "HelloWorld" $(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) HelloWorld
-@echo ' '
.PHONY: all clean dependents
-include ../makefile.targets
[Updated on: Sat, 29 February 2020 16:03] by Moderator
|
|
|
|
|
Re: Multiple makefile errors only in Eclipse [message #1860522 is a reply to message #1822278] |
Fri, 11 August 2023 19:53  |
Eclipse User |
|
|
|
Most likely an encoding error.
I have two make files that only differ in the file name.
One worked and one had errors on line 6, 11, and all following lines.
The one that worked was encoded with Unix style end of line
and the one that did not was DOS (windows) style end of line.
Well that was not the problem. I converted the DOS to Unix style EOLs and still get the same error.
So I copied the working make file to this and ran it with out any modifications, and got the same errors. I have looked through all the project properties and can not find any differences. Also the run configurations appear to be the same( except for the file name).
If I go to a terminal(cygwind) and "make all" it works just fine. the exe file also works.
Any hints accepted with favor.
Cliff
[Updated on: Sat, 12 August 2023 18:26] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.09833 seconds