www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Sources of MS Link (Converting MS LIBS)

reply John Reimer <jjreimer telus.net> writes:
A past post indicated that versions of MS link.exe could be found in MS 
SDK.  This linker is apparently critical for converting new COFF to old 
COFF before we can finally convert the lib to OMF for Digitalmars tools 
(using COFF2OMF).

The most recent MS SDK for XP no longer seems to have the linker. 
According to other sources, this linker also can be found in the WIN98 
DDK and other versions of the MS DDK.  Unfortunately none of the DDK's 
are freely available anymore (so far as I could tell).

Does anyone know of any other valid source for the linker?

Thanks,

John
Aug 27 2003
next sibling parent Andy C <Andy_member pathlink.com> writes:
I just got the latest version of DDK and I have the same problem.  
Does anyone know where I can get the correct version of Link.EXE?
Thanks!
Andy

In article <bij9uh$1a23$1 digitaldaemon.com>, John Reimer says...
A past post indicated that versions of MS link.exe could be found in MS 
SDK.  This linker is apparently critical for converting new COFF to old 
COFF before we can finally convert the lib to OMF for Digitalmars tools 
(using COFF2OMF).

The most recent MS SDK for XP no longer seems to have the linker. 
According to other sources, this linker also can be found in the WIN98 
DDK and other versions of the MS DDK.  Unfortunately none of the DDK's 
are freely available anymore (so far as I could tell).

Does anyone know of any other valid source for the linker?

Thanks,

John
Oct 20 2003
prev sibling parent reply Andy C <Andy_member pathlink.com> writes:
I just got the latest version of DDK and I have the same problem.  
Does anyone know where I can get the correct version of Link.EXE?
Thanks!
Andy

In article <bij9uh$1a23$1 digitaldaemon.com>, John Reimer says...
A past post indicated that versions of MS link.exe could be found in MS 
SDK.  This linker is apparently critical for converting new COFF to old 
COFF before we can finally convert the lib to OMF for Digitalmars tools 
(using COFF2OMF).

The most recent MS SDK for XP no longer seems to have the linker. 
According to other sources, this linker also can be found in the WIN98 
DDK and other versions of the MS DDK.  Unfortunately none of the DDK's 
are freely available anymore (so far as I could tell).

Does anyone know of any other valid source for the linker?

Thanks,

John
Oct 20 2003
parent reply Ingvaldur Sigurjonsson <ingi telia.com> writes:
Andy C wrote:
 I just got the latest version of DDK and I have the same problem.  
 Does anyone know where I can get the correct version of Link.EXE?
 Thanks!
 Andy
 
 In article <bij9uh$1a23$1 digitaldaemon.com>, John Reimer says...
 
A past post indicated that versions of MS link.exe could be found in MS 
SDK.  This linker is apparently critical for converting new COFF to old 
COFF before we can finally convert the lib to OMF for Digitalmars tools 
(using COFF2OMF).

The most recent MS SDK for XP no longer seems to have the linker. 
According to other sources, this linker also can be found in the WIN98 
DDK and other versions of the MS DDK.  Unfortunately none of the DDK's 
are freely available anymore (so far as I could tell).

Does anyone know of any other valid source for the linker?

Thanks,

John
There is an issue with the coff2omf utility that it fails to generate a complete 'uuid.lib'. When you try to link with it you get unresolved symbols, like when trying to link the 'notebook' sample from wxWindows-2.4.2
 make -f makefile.sc
link /DELEXECUTABLE /RC -L/exet:nt/su:windows notebook.obj , notebook.exe, notebook, ..\..\lib\ wx_sc.lib png_sc tiff_sc jpeg_sc zlib_sc shell32_sc wsock32_sc winmm32_sc advapi32 comctl32 comdlg32 gc gdi32 kernel32 uuid ole32 oleaut32 snn user32 OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved ..\..\lib\wx_sc.lib(droptgt) Error 42: Symbol Undefined _IID_IDropTarget ..\..\lib\wx_sc.lib(droptgt) Error 42: Symbol Undefined _IID_IUnknown ..\..\lib\wx_sc.lib(dataobj) Error 42: Symbol Undefined _IID_IDataObject ..\..\lib\wx_sc.lib(dataobj) Error 42: Symbol Undefined _IID_IEnumFORMATETC --- errorlevel 4 Hopefully someone will someday do: a) fix the 'coff2omf' utility b) change the linker so it will be able to link with native MS SDK Libs c) provide an alternative linker (see modified 'wlink' (OpenWatcom linker) at Meerwald's site http://cmeerw.org/prog/dm/) regards, - Ingi
Oct 20 2003
next sibling parent reply Christof Meerwald <cmeerw web.de> writes:
On Mon, 20 Oct 2003 22:40:07 +0200, Ingvaldur Sigurjonsson wrote:
 c) provide an alternative linker (see modified 'wlink' (OpenWatcom 
 linker) at Meerwald's site http://cmeerw.org/prog/dm/)
My modified version of the Open Watcom linker (which can directly use Microsoft's COFF libraries) should be fully useable with DMC++. I have just updated the web page at http://cmeerw.org/prog/owtools/ (and uploaded new exe-files). The only thing left to do is to better integrate it into DMC++ (maybe parse the sc.ini file and provide a modified dmc.exe/sc.exe that can also invoke wlink instead of DMC's optlink). bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Oct 21 2003
parent John Reimer <jjreimer telus.net> writes:
Christof Meerwald wrote:
 On Mon, 20 Oct 2003 22:40:07 +0200, Ingvaldur Sigurjonsson wrote:
 
c) provide an alternative linker (see modified 'wlink' (OpenWatcom 
linker) at Meerwald's site http://cmeerw.org/prog/dm/)
My modified version of the Open Watcom linker (which can directly use Microsoft's COFF libraries) should be fully useable with DMC++. I have just updated the web page at http://cmeerw.org/prog/owtools/ (and uploaded new exe-files). The only thing left to do is to better integrate it into DMC++ (maybe parse the sc.ini file and provide a modified dmc.exe/sc.exe that can also invoke wlink instead of DMC's optlink). bye, Christof
Thanks, I may give it a try. I think I may have seen a reference to this linker before. Has anybody tried this modified linker with dmc? Later, John
Oct 22 2003
prev sibling parent "Christian Kaiser" <chk online.de> writes:
Well if only the IIDs are unknown, you can supply them yourself in your
code, they are documented (or can be found on the net).

Christian

"Ingvaldur Sigurjonsson" <ingi telia.com> wrote in message
news:bn1gno$1fa5$1 digitaldaemon.com...
 Andy C wrote:
 I just got the latest version of DDK and I have the same problem.
 Does anyone know where I can get the correct version of Link.EXE?
 Thanks!
 Andy

 In article <bij9uh$1a23$1 digitaldaemon.com>, John Reimer says...

A past post indicated that versions of MS link.exe could be found in MS
SDK.  This linker is apparently critical for converting new COFF to old
COFF before we can finally convert the lib to OMF for Digitalmars tools
(using COFF2OMF).

The most recent MS SDK for XP no longer seems to have the linker.
According to other sources, this linker also can be found in the WIN98
DDK and other versions of the MS DDK.  Unfortunately none of the DDK's
are freely available anymore (so far as I could tell).

Does anyone know of any other valid source for the linker?

Thanks,

John
There is an issue with the coff2omf utility that it fails to generate a complete 'uuid.lib'. When you try to link with it you get unresolved symbols, like when trying to link the 'notebook' sample from wxWindows-2.4.2 > make -f makefile.sc link /DELEXECUTABLE /RC -L/exet:nt/su:windows notebook.obj , notebook.exe, notebook, ..\..\lib\ wx_sc.lib png_sc tiff_sc jpeg_sc zlib_sc shell32_sc wsock32_sc winmm32_sc advapi32 comctl32 comdlg32 gc gdi32 kernel32 uuid ole32 oleaut32 snn user32 OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved ..\..\lib\wx_sc.lib(droptgt) Error 42: Symbol Undefined _IID_IDropTarget ..\..\lib\wx_sc.lib(droptgt) Error 42: Symbol Undefined _IID_IUnknown ..\..\lib\wx_sc.lib(dataobj) Error 42: Symbol Undefined _IID_IDataObject ..\..\lib\wx_sc.lib(dataobj) Error 42: Symbol Undefined _IID_IEnumFORMATETC --- errorlevel 4 Hopefully someone will someday do: a) fix the 'coff2omf' utility b) change the linker so it will be able to link with native MS SDK Libs c) provide an alternative linker (see modified 'wlink' (OpenWatcom linker) at Meerwald's site http://cmeerw.org/prog/dm/) regards, - Ingi
Nov 02 2003