Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329851

Summary: [Scanner Discovery] Path passed to gcc without putting quotes around it make cdt user-unfriendly
Product: [Tools] CDT Reporter: Hans Meier <eclipseBugs>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: ASSIGNED --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Hans Meier CLA 2010-11-09 15:19:07 EST
Build Identifier: 20100218-1602 CDT=201002161416

if eclipse is installed in a path with spaces in it, eg "Program Files", than the default settings shipped with cdt lead to: Error launching external scanner info generator...

The reason is that these options are passed to gcc:
-E -P -v -dD ${plugin_state_location}/${specs_file}

Somewhere along the line quotes should be introduced around paths in order for this error to go away.

Note that google currently does not turn up any useful information for this problem.

Currently the solution for this is:
Go to Window->Preferences->C/C++/New CDT Project Wizard->MakeFile Project->
Third Tab (Discovery options)->at the bottom you will find:

-E -P -v -dD ${plugin_state_location}/${specs_file}
change to:
-E -P -v -dD "${plugin_state_location}/${specs_file}"

Now restart eclipse.

basically if you are a new user your chances of finding this option in a rather daunting preference window are slim.


Reproducible: Always