| View previous topic :: View next topic |
| Author |
Message |
MrT Guest
|
Posted: Tue Jun 27, 2006 6:15 am Post subject: Suddenly linker warnings. |
|
|
[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
|
Posted: Tue Jun 27, 2006 7:36 am Post subject: Re: Suddenly linker warnings. |
|
|
"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
|
Posted: Tue Jun 27, 2006 8:42 pm Post subject: Re: Suddenly linker warnings. |
|
|
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
|
Posted: Thu Jun 29, 2006 7:39 pm Post subject: Re: Suddenly linker warnings. |
|
|
You can always switch off the warnings in options/linker/warnings.
I have this problem. Now I have the solution.
Thanks Gambit |
|
| Back to top |
|
 |
|