Board index » cppbuilder » Anyone want to confirm that this is a bug?
Matt Lowe
![]() CBuilder Developer |
Anyone want to confirm that this is a bug?2008-04-18 11:12:19 PM cppbuilder111 QC #61118: Linker does not notify about colliding names from different libraries I've tried to add an attachment that exhibits the behavior, but I can't seem to do it with either the web client or the windows client. Any ideas? Steps to reproduce: Create a static library A Create a new cpp unit in A In the header, declare a class Y In the cpp, declare a class X and have Y use X Create a static library B Create a new cpp unit in B In the header, declare a class Z In the cpp, declare a class X and have Z use X Create a CPP VCL forms app Include the headers from libraries A and B Create a function F that uses both Y and Z Build all. Expected: Linker will warn about a collision, or Class Y will use X as defined in library A, and Class Z will use X as defined in B. Observed: Linker does not warn, and Class Y and class Z use X as defined in library A. -- Matt Lowe Milsoft Utility Solutions |