 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
PaulR Guest
|
Posted: Fri Mar 23, 2007 8:50 pm Post subject: BCC32/ILINK32 compiles or links differently from IDE, causin |
|
|
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
|
Posted: Sat Mar 24, 2007 11:34 pm Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca |
|
|
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
|
Posted: Mon Mar 26, 2007 11:54 pm Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca |
|
|
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
|
Posted: Tue Mar 27, 2007 3:16 am Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca |
|
|
| 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
|
Posted: Thu Mar 29, 2007 8:41 pm Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca |
|
|
"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
|
Posted: Fri Mar 30, 2007 5:50 am Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca |
|
|
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
|
Posted: Thu Apr 05, 2007 1:23 am Post subject: Re: BCC32/ILINK32 compiles or links differently from IDE, ca |
|
|
| 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 |
|
 |
|
|
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
|
|