Bug 212524 - Binary not detected on build
Summary: Binary not detected on build
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0.1   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 215720
  Show dependency tree
 
Reported: 2007-12-11 06:22 EST by David Perryman CLA
Modified: 2020-09-04 15:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Perryman CLA 2007-12-11 06:22:17 EST
Build ID: M20071023-1652

Steps To Reproduce:
1. Create a managed build C project called 'stack'
2. Add a file with a main() method
3. Build the project, the binary file will not be recognised


More information:
This appears to be becuase CDT has a number of built in cxxHeader content types, so if the binary file is called 'stack', the content type will be set to cxxHeader, and not be detected as a binary file.

This works fine on any system where binary files are given an extension (e.g. stack.exe will be picked up fine).

The code that adds the built in header types is in plugin.xml in the org.eclipse.cdt.core plugin, line 513. The comment indicates that these are reserved C++ standard header file names, but is there a way to get the files recognised as binaries if they are built by a project?