|
| BCC32/ILINK32 compiles or links differently from IDE, causing program |
 |
Fri, 23 Mar 2007 10:50:06 -050 |
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,
|
| Post Reply
|
| Re: BCC32/ILINK32 compiles or links differently from IDE, causing program to not run correctly |
 |
24 Mar 2007 10:34:31 -0800 |
PaulR <nospam_prodden@jwscorp.com_nospam> wrote in news:4603f724$1
@newsgroups.borland.com:
> ...
> 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
|
| Post Reply
|
| Re: BCC32/ILINK32 compiles or links differently from IDE, causing |
 |
Mon, 26 Mar 2007 13:54:40 -050 |
Peter Strömberg wrote:
>
> 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
|
| Post Reply
|
| Re: BCC32/ILINK32 compiles or links differently from IDE, causing program to not run correctly |
 |
Mon, 26 Mar 2007 18:16:49 -040 |
>> 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
|
| Post Reply
|
| Re: BCC32/ILINK32 compiles or links differently from IDE, causing program to not run correctly |
 |
Thu, 29 Mar 2007 08:41:17 -070 |
"Mark Guerrieri" <mguerrieri@ncogroup.com> wrote in message
news:46084651$1@newsgroups.borland.com...
>>> 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
|
| Post Reply
|
|
|
|
|
|
|
|
|
|