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 

BCC32/ILINK32 compiles or links differently from IDE, causin

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





PostPosted: Fri Mar 23, 2007 8:50 pm    Post subject: BCC32/ILINK32 compiles or links differently from IDE, causin Reply with quote



I'm using BDS2006 BCC32 V5.82, ILINK32 V5.69 to compile a project via a
makefile.

The project compiles correctly in the IDE, but not via the makefile.
The makefile was originally created using BDSPROJ2MAK utility.

This is a COM/DCOM project, where the project in question is a COM/DCOM
server.

If I compile in the IDE, the clients can connect to and instantiate the
server. But if I compile via BCC32 and ILINK32, the clients can't,
generating a "Create(infObj):Error loading type library/DLL" error.

I've gone through all the options, and even made a batch file by hand
using the options as shown in the IDE project manager, but get the same
results.

I have many other projects that compile/link correctly via
BCC32/ILINK32. I suspect the problem here might have to do with the
type library stuff, as this is the only COM/DCOM server project I have.

Any suggestions on where to look or what to try?

Thanks,
Paul
Back to top
Peter Strömberg
Guest





PostPosted: Sat Mar 24, 2007 11:34 pm    Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca Reply with quote



PaulR <nospam_prodden (AT) jwscorp (DOT) com_nospam> wrote in news:4603f724$1
@newsgroups.borland.com:

Quote:
...
I have many other projects that compile/link correctly via
BCC32/ILINK32. I suspect the problem here might have to do with the
type library stuff, as this is the only COM/DCOM server project I have.

Any suggestions on where to look or what to try?

sounds like you don't have the tlb file in the makefile
(you need to add it to the linker (as a resource))
Back to top
PaulR
Guest





PostPosted: Mon Mar 26, 2007 11:54 pm    Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca Reply with quote



Peter Strömberg wrote:
Quote:

sounds like you don't have the tlb file in the makefile
(you need to add it to the linker (as a resource))

Peter, that did it - Thanks!

Paul
Back to top
Mark Guerrieri
Guest





PostPosted: Tue Mar 27, 2007 3:16 am    Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca Reply with quote

Quote:
sounds like you don't have the tlb file in the makefile
(you need to add it to the linker (as a resource))

This should be put into QC, as BDSPROJ2MAK does not include the type library
for COM projects (DLL or EXE)

Mark
Back to top
Dennis Jones
Guest





PostPosted: Thu Mar 29, 2007 8:41 pm    Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca Reply with quote

"Mark Guerrieri" <mguerrieri (AT) ncogroup (DOT) com> wrote in message
news:46084651$1 (AT) newsgroups (DOT) borland.com...
Quote:
sounds like you don't have the tlb file in the makefile
(you need to add it to the linker (as a resource))

This should be put into QC, as BDSPROJ2MAK does not include the type
library for COM projects (DLL or EXE)

There are NUMEROUS problems relating to building projects from the command
line versus building from the IDE. Borland has never done a good job with
this. This problem sounds very similar to one I complain about all the
time -- the main problem I have is the fact that the IDE implicitly searches
include and library paths from packages that are loaded in the IDE even
though those paths are not explicitly specified in the project's options.
Therefore, it is possible (and very likely) that a project that uses any
installed packages will build and run fine from the the IDE, but will not
build at all or will run differently when built from the command line. It's
just one more example of someone trying to do something helpful but doing
such a bad job of it that it causes more problems than it solves.

- Dennis
Back to top
PaulR
Guest





PostPosted: Fri Mar 30, 2007 5:50 am    Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca Reply with quote

Mark Guerrieri wrote:
Quote:
This should be put into QC, as BDSPROJ2MAK does not include the type library
for COM projects (DLL or EXE)

Mark - FYI - I have added this as a QC report #43469.

Thanks for the reminder.

Paul
Back to top
PaulR
Guest





PostPosted: Thu Apr 05, 2007 1:23 am    Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca Reply with quote

Quote:
Mark - FYI - I have added this as a QC report #43469.

FYI - Someone else had reported this as 41306. My original 43469 was
modified to mark it as a duplicate.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) 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.