#181 cc: name conflict

open
Curt Arnold
cpptasks (103)
5
2006-09-20
2006-09-20
Anonymous
No

The cc task could not handle a situation with two .cpp
files with the same name but in different
sub-directories of my source folder. Only one object
file was generated which resulted in unresolved
externals during linking.

- Platform: Windows XP, msvc compiler
- weather.h/.cpp in src and weather.h/.cpp in
src/datalayer. In addition both classes had the name
CWeather (one in a namespace data, one in the default
namespace).
- only one object weather.obj was generated ->
unresolved externals
- renaming one of the .h/.cpp pairs helped but that is
not a very smart solution imo

mailto:h.koch@tms-bonn.de

Discussion