Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi OBJ files from Delphi - can't link (https://www.delphipraxis.net/161182-obj-files-delphi-cant-link.html)

WojTec 21. Jun 2011 11:09

Delphi-Version: 2010

OBJ files from Delphi - can't link
 
I made DLL and API unit, working ok. I also wanted OBJ to link this library with EXE. I tried C and C++ output, but Delphi talking that is bad format. I did something wrong? I can't use OBJ from Delphi in Delphi apps?

generic 21. Jun 2011 11:12

AW: OBJ files from Delphi - can't link
 
You can use obj files, if they are in omf file format.
coff files cannot linked.

omf can generated by using the c++builder.


http://rvelthuis.de/articles/articles-cobjs.html

WojTec 21. Jun 2011 11:48

Re: OBJ files from Delphi - can't link
 
So, what the point of OBJ's from Delphi? Aghr.

So, what can I do if I have source in Delphi and I don't have Builder (but how Bulder can help if source is in Delphi nor C++?)?

I found on this site link to objconv.exe and tried it.

objconv -fomf TestLib32.obj TestLib32.o

Output is identical with input, so I don't know it working or not...

generic 21. Jun 2011 12:15

AW: OBJ files from Delphi - can't link
 
Which language did you use for creating the dll (delphi, c or c++)?

WojTec 21. Jun 2011 12:37

Re: OBJ files from Delphi - can't link
 
Delphi, compiled with Delphi 2010.

mschaefer 21. Jun 2011 15:26

AW: OBJ files from Delphi - can't link
 
Perhaps this link will help obj-files in Delphi

WojTec 21. Jun 2011 15:57

Re: OBJ files from Delphi - can't link
 
Hm, I still don't know what to do... Where to get this coff2omf.exe?

mschaefer 21. Jun 2011 16:15

AW: OBJ files from Delphi - can't link
 
Try this

generic 22. Jun 2011 09:06

AW: OBJ files from Delphi - can't link
 
You have a delphi project, whats the need to create obj files?
is it necessary to share obj files to other languages like c?

why you are not using delphis dcu files for linking into a project?

WojTec 22. Jun 2011 09:50

Re: OBJ files from Delphi - can't link
 
Because I want to share lib with others, but also allow link it into EXE. It should be linkable in Delphi and C and C++ and maybe other if possible.


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:00 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz