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 

Cannot find Delphi-component .obj files

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





PostPosted: Tue Feb 07, 2006 11:01 pm    Post subject: Cannot find Delphi-component .obj files Reply with quote



Hi,

I'm trying to convert a C++ Builder 6 project to C++ Builder 2006. I have
all my components installed in BDS2006 now. Most are written in Delphi, and
I made them available from the C++ Builder personality by checking the
'Generate all C++ Builder files' option before building and installing the
components from the Delphi personality using their Delphi 2006 packages.

They all work at designtime, but when I compile even a small test project,
it complains that it cannot find .obj files for the components, e.g.
TBX.OBJ. I have no such file. I have TBX.DCU. Even with the 'Generate all
C++ Builder files' option enabled, no .obj files are generated, only .hpp
files.

In my .cpp file, a pragma is automatically added:
#pragma link "TBX"

That's what's failing I assume.

What am I missing here? In BCB6 I do have the .obj files, but there I used a
C++ Builder specific package to install them. Do I really need to create my
own C++ Builder 2006 packages? If so, what's the use of the 'Generate all
C++ Builder files' option?


Regards,
Brian
Back to top
Raúl Lorenzo
Guest





PostPosted: Tue Feb 07, 2006 11:01 pm    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote



In BDS 2006, obj files are normally inside Debug_Build directory of the
project you compiled.

Brian Rasmusson escribió:
Quote:
Hi,

I'm trying to convert a C++ Builder 6 project to C++ Builder 2006. I have
all my components installed in BDS2006 now. Most are written in Delphi, and
I made them available from the C++ Builder personality by checking the
'Generate all C++ Builder files' option before building and installing the
components from the Delphi personality using their Delphi 2006 packages.

They all work at designtime, but when I compile even a small test project,
it complains that it cannot find .obj files for the components, e.g.
TBX.OBJ. I have no such file. I have TBX.DCU. Even with the 'Generate all
C++ Builder files' option enabled, no .obj files are generated, only .hpp
files.

In my .cpp file, a pragma is automatically added:
#pragma link "TBX"

That's what's failing I assume.

What am I missing here? In BCB6 I do have the .obj files, but there I used a
C++ Builder specific package to install them. Do I really need to create my
own C++ Builder 2006 packages? If so, what's the use of the 'Generate all
C++ Builder files' option?


Regards,
Brian

Back to top
David Dean
Guest





PostPosted: Wed Feb 08, 2006 12:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote



In article <43e91ac3 (AT) newsgroups (DOT) borland.com>,
"Brian Rasmusson" <br (AT) XbitXberXry (DOT) com> wrote:

Quote:
They all work at designtime, but when I compile even a small test project,
it complains that it cannot find .obj files for the components, e.g.
TBX.OBJ. I have no such file. I have TBX.DCU. Even with the 'Generate all
C++ Builder files' option enabled, no .obj files are generated, only .hpp
files.

In BDS, the .obj code becomes part of the .lib file. Add the .lib to
your project and all will link fine.

--
-David

Nihil curo de ista tua stulta superstitione.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 08, 2006 12:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

"Brian Rasmusson" <br (AT) XbitXberXry (DOT) com> wrote in message
news:43e92780$1 (AT) newsgroups (DOT) borland.com...

Quote:
When I add components to a form, shouldn't BDS add the lib
to the project automatically then?

Yes, and it actually does.


Gambit
Back to top
Brian Rasmusson
Guest





PostPosted: Wed Feb 08, 2006 12:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

Hi David,

Quote:
In BDS, the .obj code becomes part of the .lib file. Add the .lib to
your project and all will link fine.

Interesting, that does seem to work. When I add components to a form,
shouldn't BDS add the lib to the project automatically then? I think it
should :-)

Thanks!

Brian
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 08, 2006 12:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

"Brian Rasmusson" <br (AT) XbitXberXry (DOT) com> wrote in message
news:43e91ac3 (AT) newsgroups (DOT) borland.com...

Quote:
They all work at designtime, but when I compile even a small test
project, it complains that it cannot find .obj files for the components,
e.g. TBX.OBJ. I have no such file. I have TBX.DCU. Even with the
'Generate all C++ Builder files' option enabled, no .obj files are
generated, only .hpp files.

You are not supposed to be linking to the .OBJ files in the first place.
Link to the .BPI or .LIB files instead. The .OBJ files are contained inside
of them.

Quote:
What am I missing here? In BCB6 I do have the .obj files

You should not have been using them even in BCB 6 and earlier versions.
Always use the compiled package files instead.


Gambit
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 08, 2006 12:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

"Brian Rasmusson" <br (AT) XbitXberXry (DOT) com> wrote in message
news:43e91ac3 (AT) newsgroups (DOT) borland.com...

Quote:
I'm trying to convert a C++ Builder 6 project to C++ Builder 2006.

Did you import an existing project, or did you create a new one? You should
always create new projects. The project importer is still buggy.


Gambit
Back to top
David Erbas-White
Guest





PostPosted: Wed Feb 08, 2006 1:00 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

Remy Lebeau (TeamB) wrote:
Quote:
"Brian Rasmusson" <br (AT) XbitXberXry (DOT) com> wrote in message
news:43e91ac3 (AT) newsgroups (DOT) borland.com...


I'm trying to convert a C++ Builder 6 project to C++ Builder 2006.


Did you import an existing project, or did you create a new one? You should
always create new projects. The project importer is still buggy.


Gambit




Really??? <G> What a shock. And it's been HOW MANY YEARS that folks
have been complaining about this?

I realize that it doesn't take that long to do, but does Borland have
any sense of how bad it looks to managements folks when you tell them
you want to upgrade, and one of their questions becomes "and will you
have to do that project conversion nonsense this time?" It leaves a bad
taste, it really does.

David Erbas-White
Back to top
Michael McCulloch
Guest





PostPosted: Wed Feb 08, 2006 2:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

On Tue, 7 Feb 2006 15:32:22 -0800, "Remy Lebeau \(TeamB\)"
<no.spam (AT) no (DOT) spam.com> wrote:

Quote:
I'm trying to convert a C++ Builder 6 project to C++ Builder 2006.

Did you import an existing project, or did you create a new one? You should
always create new projects. The project importer is still buggy.

I have to agree with this statement. I had numerous weird problems
with my BCB4 converted project that made no sense to me. The "missing
OBJ" messages from the linker nearly drove me insane.

Finally I just created a new BDS2006 project from scratch and it all
worked without any futher complications. The project in question
consisted of 72 forms and 80+ source files.

---
Michael McCulloch
Back to top
Brian Rasmusson
Guest





PostPosted: Wed Feb 08, 2006 8:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

Quote:
You should not have been using them even in BCB 6 and earlier versions.
Always use the compiled package files instead.

I'm not sure I have used the .OBJ files. I always add the libs to my
projects, but I noticed that the .OBJ files were there in the component
directories in my BCB6 installation, and it's not in my BDS2006
installation.

Brian
Back to top
Brian Rasmusson
Guest





PostPosted: Wed Feb 08, 2006 8:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

Quote:
Did you import an existing project, or did you create a new one? You
should
always create new projects. The project importer is still buggy.

I tried opening a BCB6 project in BDS2006 to convert it, but it just threw
an error at me. Then I created a new project and added all forms from my
BCB6 project. Is this a wrong way to do it?

Brian
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 08, 2006 9:01 am    Post subject: Re: Cannot find Delphi-component .obj files Reply with quote

"Brian Rasmusson" <br (AT) XbitXberXry (DOT) com> wrote in message
news:43e99a1e (AT) newsgroups (DOT) borland.com...

Quote:
I tried opening a BCB6 project in BDS2006 to convert it

Don't do that. It is more trouble than it is worth.

Quote:
I created a new project and added all forms from my BCB6 project.

That is what you should do.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical) 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.