BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Weird problem with linker

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Francisco M. Marzoa
Guest





PostPosted: Fri May 06, 2005 10:41 am    Post subject: Weird problem with linker Reply with quote



Hi,

I've a weir problem with BCC linker. This is the error it gives me:

[Linker Error] Unresolved external 'TTagList::GetCount()' referenced
from C:DEVELSFCOMSSAMPLEAPPSRIDELRIDELDEMOREADALL.OBJ

Well, ReadAll.cpp is a form of an application that contains this:

....

if ( Tags->Count ) {

....

Now, Tags is an instance of TTagList, defined on TagList.cpp. In the
includes of ReadAll.cpp I've put:

....

#include "TagList.h"

....

But this does not make the matter, as It compiles fine, but it does not
link later.

TTagList has a property that's *public* declared as:


public:

....
__property int Count = {
read=GetCount
};

Method GetCount for TTagList is declared as:


protected:
int GetCount (void);


Note that the method is protected, but it should be cause I'm using the
property Count to access this value and it is public.

As I've said, both modules compiles well by separate, the trouble comes
when linking. By other side, I've used that TTagList object from a
component that I'm writting without this problems.

Any ideas?


Back to top
Andrue Cope [TeamB]
Guest





PostPosted: Fri May 06, 2005 11:17 am    Post subject: Re: Weird problem with linker Reply with quote



Francisco M. Marzoa wrote:

Quote:
Hi,

I've a weir problem with BCC linker. This is the error it gives me:

I've already answered your question in .oodesign although that was an
odd place to post it now you've drawn my attention to it. In any case
newsgroup guidelines ask that you post to the single most appropriate
newsgroup section.

They also suggest that you be a bit patient as it can sometimes take a
couple of days for useful replies to be posted sometimes.

tbh I think the best place for your question would have been in
..cpp.language since it is a language related issue (ie;how do I get
this to compile?).

Hopefully my other answer will resolve the problem for you.

--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.