Bug 156458 - [Managed Make C++ Project] error in makefile and subdir.mk
Summary: [Managed Make C++ Project] error in makefile and subdir.mk
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 21:00 EDT by mphantom CLA
Modified: 2020-09-04 15:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mphantom CLA 2006-09-06 21:00:53 EDT
Hi,

Eclipse SDK : Version: 3.2.0, Build id: M20060629-1905
CDT: 3.1.0.200606261600 (Install/Update wizard: http://download.eclipse.org/tools/cdt/releases/eclipse3.1)

I create a managed make C++ project and one .cpp file with a main function. If i open the context menu for the project and select "build project" i get a error: 
Build error
(Exec error:Launching failed)

After i controled the makefile i have noticed that there is a error in the following line: 
g++  -o"Test.exe" $(OBJS) $(USER_OBJS) $(LIBS) 
( context:
# Tool invocations
Test.exe: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C++ Linker'
	g++  -o"Test.exe" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '
)
The blank is missing after the parameter "-o". 

(Thats why the build break off !??)

The same error occurs in the subdir.mk file:
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"

but this i can fix on my own by changing the project configuration 
(project->build->Tool Settings->Comand line pattern)
${COMMAND} ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}  <-old
${COMMAND} ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX} ${OUTPUT} ${INPUTS} <-new

I hope the description is correct and all needed information are present.

regards Michael