Re: Linking with objects created from c code
- From: Hans-Peter Diettrich <DrDiettrich1@xxxxxxx>
- Date: Mon, 19 May 2008 10:08:39 +0200
robert.c.macleod@xxxxxxxxx schrieb:
I'm trying link in an object file generated from c code into a
delphi application using Delphi 2007 with the following directive:
{$L c_unit.obj}
I get the following error: E2045 Bad object file format: 'C:\opi\c
\c_unit.obj'
c_unit.obj generated by command: cl -c c_unit.c
cl is from microsoft visual c/c++ (version 6).
Object files can come in different formats. Most probably Delphi doesn't support any but the format of its own C++ personality. AFAIK the VC object format never has been supported.
I've heard a rumor, that RAD Studio supports "msbuild", whatever this may be (I'm still using D7). Have a look at your Delphi docs, that tool or feature may do what you want.
DoDi
.
- Follow-Ups:
- Re: Linking with objects created from c code
- From: Rudy Velthuis
- Re: Linking with objects created from c code
- References:
- Linking with objects created from c code
- From: robert . c . macleod
- Linking with objects created from c code
- Prev by Date: Re: printing metafiles
- Next by Date: Re: Linking with objects created from c code
- Previous by thread: Linking with objects created from c code
- Next by thread: Re: Linking with objects created from c code
- Index(es):
Relevant Pages
|