 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Moeller Guest
|
Posted: Wed Feb 18, 2004 2:36 pm Post subject: Unresolved external error with Runtime Packages |
|
|
Hi,
Compiling a project with 'Build of Rutime Packages', I get a linker error
'unresolved external' for every function call refering to a unit of the
component package.
Compiling without building runtime packages, it works fine.
- The header includes are correct
- The component package is built with both Designtime & Runtime
- The generated bpi is included into the Runtime Package list.
What is wrong?
Tks & Rgds, Martin
|
|
| Back to top |
|
 |
Frode Nilsen Guest
|
Posted: Wed Feb 18, 2004 4:07 pm Post subject: Re: Unresolved external error with Runtime Packages |
|
|
On Wed, 18 Feb 2004 15:36:47 +0100, Martin Moeller
<martin.moeller (AT) moema (DOT) it> wrote:
Silly question, but have you exported the functions/classes you are trying
to link with?
frode
| Quote: | Hi,
Compiling a project with 'Build of Rutime Packages', I get a linker error
'unresolved external' for every function call refering to a unit of the
component package.
Compiling without building runtime packages, it works fine.
- The header includes are correct
- The component package is built with both Designtime & Runtime
- The generated bpi is included into the Runtime Package list.
What is wrong?
Tks & Rgds, Martin
|
|
|
| Back to top |
|
 |
Martin Moeller Guest
|
Posted: Wed Feb 18, 2004 4:12 pm Post subject: Re: Unresolved external error with Runtime Packages |
|
|
| Quote: |
Silly question, but have you exported the functions/classes you are trying
to link with?
|
Not that silly, as I havn't done it. Can point me an example?
Tks, Martin
|
|
| Back to top |
|
 |
Harold Howe [TeamB] Guest
|
Posted: Wed Feb 18, 2004 6:27 pm Post subject: Re: Unresolved external error with Runtime Packages |
|
|
Martin Moeller wrote:
| Quote: | Compiling a project with 'Build of Rutime Packages', I get a linker error
'unresolved external' for every function call refering to a unit of the
component package.
Compiling without building runtime packages, it works fine.
|
Open the project XML file and make sure that the BPI for this package is
listed in the correct places along with the other packages. Make sure it
isn't in the excluded list.
Also, you may want to check your system for older versions of the BPI.
Maybe the linker is finding an old version.
h^2
|
|
| Back to top |
|
 |
Frode Nilsen Guest
|
Posted: Tue Feb 24, 2004 11:12 am Post subject: Re: Unresolved external error with Runtime Packages |
|
|
On Wed, 18 Feb 2004 17:12:16 +0100, Martin Moeller
<martin.moeller (AT) moema (DOT) it> wrote:
| Quote: |
Silly question, but have you exported the functions/classes you are
trying
to link with?
Not that silly, as I havn't done it. Can point me an example?
|
No, but it goes this way:
class PACKAGE myclass
{
};
void PACKAGE myfunction(void);
PACKAGE is a macro that get expanded to __declspec( package ), the same
macro is used in both import and export. With dll's you have to use
__declspec(dllimport) __declspec(dllexport).
Differenses between bpl's and dll's are explained in a the help files,
headline "Packages (.BPLs) vs. .DLLs"
hth
frode
|
|
| 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
|
|