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 

Suddenly linker warnings.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
MrT
Guest





PostPosted: Tue Jun 27, 2006 6:15 am    Post subject: Suddenly linker warnings. Reply with quote



[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\ADVER.OBJ
[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\APPDATEFORM.OBJ
[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\ASSOC.OBJ
[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\ASSOCID.OBJ
[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\BUDGET.OBJ


I did a make and a build and got 750+ of these babies. App okay but what
would suddenly cause this? Particularly since a project file search
yielded no instances of CRInvoiceDate!!!

Thanks.

Best regards
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Jun 27, 2006 7:36 am    Post subject: Re: Suddenly linker warnings. Reply with quote



"MrT" <contact@heat-mi.org> wrote in message
news:44a0864a (AT) newsgroups (DOT) borland.com...

Quote:
[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\ADVER.OBJ

That happens when you declare a variable inside a header file that is shared
amongst multiple units. You should be declaring the actual variable in a
..cpp file and then use an 'extern' statement in the header file.

Quote:
I did a make and a build and got 750+ of these babies. App okay
but what would suddenly cause this? Particularly since a project file
search yielded no instances of CRInvoiceDate!!!

It obviously has to be declared somewhere. Did you recently install/upgrade
any components/libraries? What happens when you try to use the code
editor's "Find Declaration" feature?


Gambit
Back to top
MrT
Guest





PostPosted: Tue Jun 27, 2006 8:42 pm    Post subject: Re: Suddenly linker warnings. Reply with quote



Thanks.

Exactly as you suggested.

Remy Lebeau (TeamB) wrote:
Quote:
"MrT" <contact@heat-mi.org> wrote in message
news:44a0864a (AT) newsgroups (DOT) borland.com...


[Linker Warning] Public symbol '_CRInvoiceDate' defined in both module
D:\LTDMS\LTDMSA\DMMAIN.OBJ and D:\LTDMS\LTDMSA\ADVER.OBJ


That happens when you declare a variable inside a header file that is shared
amongst multiple units. You should be declaring the actual variable in a
.cpp file and then use an 'extern' statement in the header file.


I did a make and a build and got 750+ of these babies. App okay
but what would suddenly cause this? Particularly since a project file
search yielded no instances of CRInvoiceDate!!!


It obviously has to be declared somewhere. Did you recently install/upgrade
any components/libraries? What happens when you try to use the code
editor's "Find Declaration" feature?


Gambit

Back to top
johnp
Guest





PostPosted: Thu Jun 29, 2006 7:39 pm    Post subject: Re: Suddenly linker warnings. Reply with quote

You can always switch off the warnings in options/linker/warnings. Smile
I have this problem. Now I have the solution.
Thanks Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) 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.