 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Francisco M. Marzoa Guest
|
Posted: Fri May 06, 2005 10:41 am Post subject: Weird problem with linker |
|
|
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
|
Posted: Fri May 06, 2005 11:17 am Post subject: Re: Weird problem with linker |
|
|
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 |
|
 |
|
|
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
|
|