Bug 384192 - Unable to add two source files with same base name but different extensions in the same folder
Summary: Unable to add two source files with same base name but different extensions i...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.0.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 14:15 EDT by Eugene Ostroukhov CLA
Modified: 2020-09-04 15:23 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 Eugene Ostroukhov CLA 2012-07-03 14:15:39 EDT
Build Identifier: 20120216-1857

Managed builder will use same output name for the object file generated from the source files. This makes it impossible to build the project.

Reproducible: Always

Steps to Reproduce:
1. Create an empty C++ project. Create a source folders.
2. Add source files named "my.cpp" and "my.c" to the source folder.
3. Build the project.

Only one source file will be compiled, linking may fail if that file referenced function from another file.
Comment 1 Doug Schaefer CLA 2012-07-04 11:01:53 EDT
How would you do this if you hand wrote your own Makefile? The gnu make implicit rules would have the same problem.
Comment 2 Andrew Gvozdev CLA 2012-07-04 15:18:30 EDT
We could specify names of intermediate object files explicitly to include extensions, i.e. my.cpp.o and my.c.o.
Comment 3 Eugene Ostroukhov CLA 2012-07-05 14:46:32 EDT
I wonder if it is possible to do this only when we know there's a name clash. I have this bug scoped for our next release so I plan to experiment with it and possibly submit a CDT patch.