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 

Unresolved external error with Runtime Packages

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Martin Moeller
Guest





PostPosted: Wed Feb 18, 2004 2:36 pm    Post subject: Unresolved external error with Runtime Packages Reply with 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
Frode Nilsen
Guest





PostPosted: Wed Feb 18, 2004 4:07 pm    Post subject: Re: Unresolved external error with Runtime Packages Reply with quote



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





PostPosted: Wed Feb 18, 2004 4:12 pm    Post subject: Re: Unresolved external error with Runtime Packages Reply with quote



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





PostPosted: Wed Feb 18, 2004 6:27 pm    Post subject: Re: Unresolved external error with Runtime Packages Reply with quote

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





PostPosted: Tue Feb 24, 2004 11:12 am    Post subject: Re: Unresolved external error with Runtime Packages Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.