Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2003

Tip: Looking for answers? Try searching our database.

Templating

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JL - 28 Aug 2003 22:25 GMT
When trying to template a class where the class
declaration is in a header file and the class
specification is in the source file, I receive linking
errors (Unresolved External Symbols... as if I have not
defined the methods).  When I put everything in one file,
it all works beautifully... any suggestions on how to
remedy this problem?

THanks,
Jonathan Caves [MSFT] - 29 Aug 2003 02:04 GMT
>Content-Class: urn:content-classes:message
>From: "JL" <jltruitt@una.edu>
[quoted text clipped - 12 lines]
>
>THanks,

Hi JL: this is the way Visual C++ works: the Visual C++ compiler supports
what is
known as the "inclusion model" for templates: at its simplest this means
that the
full definition of a class template must be available in all compilands in
which
the class template is specialized.

Signature

Jonathan Caves, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.