Linking with objects created from c code
Hi,
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).
I get a similar error when I try the gcc command (out of the gnat
suite)
Any ideas?
Thank in advance.
Rob
.
Relevant Pages
- Re: Linking with objects created from c code
... delphi application using Delphi 2007 with the following directive: ... I get the following error: E2045 Bad object file format: 'C:\opi\c ... "Democracy is where you can say what you think even if you don't ... (comp.lang.pascal.delphi.misc) - Re: Linking with objects created from c code
... delphi application using Delphi 2007 with the following directive: ... I get the following error: E2045 Bad object file format: 'C:\opi\c ... Most probably Delphi doesn't support any but the format of its own C++ personality. ... (comp.lang.pascal.delphi.misc) - Delphi and C++ object file
... Is it possible to debug C++ code that was compiled with bcc32 from within ... Delphi? ... The C++ object file is linked using the directive and works, ... what compiler switches do I need to use ... (borland.public.delphi.non-technical) - ANN: Inference Engine Component Suite updated
... RiverSoftAVG is pleased to announce that the Inference Engine Component ... Suite has been updated to v2.7. ... version of the RiverSoftAVG Fuzzy Logic Component Library. ... Borland Delphi environment. ... (borland.public.delphi.thirdpartytools.general) - Re: Best DBGrid for Delphi..
... I found some bugs in it that made it unusable in an app I was working ... I used to use devexpress ones which I found bloated and slow and I now use Berg Next suite and /I/ am /very/ happy with it and won't look back your mileage may vary. ... The best for Delphi depends on yourself as a developper. ... (borland.public.delphi.thirdpartytools.general) |
|