Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++/Front End/RTTI    [ Add a report in this area ]  
Report #:  85504   Status: Closed
typeid (pointer to incomplete type) triggers link error: Unresolved external
Project:  C++Builder Build #:  6.21.3615.26516
Version:    14.0 Submitted By:   Niels Dekker
Report Type:  Basic functionality failure Date Reported:  6/16/2010 2:48:39 PM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   277419
Resolution: Duplicate (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
An attempt to retrieve the typeid of a pointer to an incomplete class type triggers a link error: "Unresolved external..." I encountered this issue when I tried to compile a unit test of Boost Exception, by Emil Dotchevski: https://svn.boost.org/trac/boost/browser/trunk/libs/exception/test/enable_error_info_test.cpp?rev=52227
Steps to Reproduce:
bcc32 qc85504.cpp

exp: clean compile

act:

Error: Unresolved external '__tpdsc__ IncompleteClassType' referenced from C:\CP
PTOOLS\AUTOMATION\BCC\HARNESS\BCCTESTS\QC85504.OBJ
Error: Unable to perform link
Workarounds
None
Attachment
JED76.zip
Comments

None

Server Response from: ETNACODE01