www.digitalmars.com         C & C++   DMDScript  

c++.command-line - coff2omf

reply "dt" <tinkham ucalgary.ca> writes:
Hello,

DigitalMars 8.42 CD, updated to 8.43
Win2K

I am following the instructions by Christof Meerwald at
http://cmeerw.org/prog/dm/ms_sdk.html to use newer microsoft sdk with
DigitalMars C++. I have downloaded sdk, patched headers, and converted to old
COFF using MSVC6 LINK.EXE. So far so good.

The next step is to use coff2omf to convert to omf format for DigitalMars.

I am using coff2omf.exe from the dm\bin directory. When I run coff2omf over
the libraries, the output to command window is like this:

COFF2OMF: Converting 'c:\psdk\lib\aclui.lib'

This makes me think it works, but the modification date of the lib files do
not change, suggesting they really are not converted.

The coff2omf help says the command to use it goes like this:

coff2omf    libname.lib

That is the command I used for all the libs (with filename changed of
course).

I assume the fact that the modification time of file did not change indicates
the conversion was not successful.

Does anyone have any ideas on what I could do to get these files converted to
omf format for DigitalMars, or any idea on what might be going wrong?

Thanks,
Doug
Apr 14 2005
next sibling parent "dt" <tinkham ucalgary.ca> writes:
"dt" <tinkham ucalgary.ca> wrote in message
news:d3mh9t$1lgb$1 digitaldaemon.com...
 Hello,

 DigitalMars 8.42 CD, updated to 8.43
 Win2K

 Does anyone have any ideas on what I could do to get these files converted
to
 omf format for DigitalMars, or any idea on what might be going wrong?
Ok, I guess the file dates don't change on conversion, as they are modified "in place". Can someone confirm this to me? Thanks, Doug
Apr 14 2005
prev sibling parent reply Ingvaldur Sigurjonsson <ingi telia.com> writes:
Here's an example on how I did this showing the conversion of wow32.lib 
import library.

I have a script that does this for all the libraries from MS SDK, but 
I'm sure you'll have as much fun as I did, creating that script for your 
self.

Notice the date and the size of file, it changes in every step (I did 
remove som excessive output of commands...)

 copy "c:\Program Files\Microsoft SDK\lib\wow32.lib .
1 file(s) copied.
 dir wow32.lib
2003-03-26 16:36 7 896 wow32.lib
 ..\bin\mslink98 /lib /convert wow32.lib
Microsoft (R) Library Manager Version 5.12.8181 Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
 dir wow32.lib
2005-04-15 00:35 28 840 wow32.lib
 coff2omf wow32.lib wow32.lib
COFF2OMF: Converting 'c:\utv\dm\mssdk\lib\wow32.lib'
 dir wow32.lib
2005-04-15 00:35 3 584 wow32.lib -- ex animo - Ingi dt wrote:
 Hello,
 
 DigitalMars 8.42 CD, updated to 8.43
 Win2K
 
 I am following the instructions by Christof Meerwald at
 http://cmeerw.org/prog/dm/ms_sdk.html to use newer microsoft sdk with
 DigitalMars C++. I have downloaded sdk, patched headers, and converted to old
 COFF using MSVC6 LINK.EXE. So far so good.
 
 The next step is to use coff2omf to convert to omf format for DigitalMars.
 
 I am using coff2omf.exe from the dm\bin directory. When I run coff2omf over
 the libraries, the output to command window is like this:
 
 COFF2OMF: Converting 'c:\psdk\lib\aclui.lib'
 
 This makes me think it works, but the modification date of the lib files do
 not change, suggesting they really are not converted.
 
 The coff2omf help says the command to use it goes like this:
 
 coff2omf    libname.lib
 
 That is the command I used for all the libs (with filename changed of
 course).
 
 I assume the fact that the modification time of file did not change indicates
 the conversion was not successful.
 
 Does anyone have any ideas on what I could do to get these files converted to
 omf format for DigitalMars, or any idea on what might be going wrong?
 
 Thanks,
 Doug
 
 
Apr 14 2005
parent "dt" <tinkham ucalgary.ca> writes:
"Ingvaldur Sigurjonsson" <ingi telia.com> wrote in message
news:d3mrkb$1v4b$1 digitaldaemon.com...
 Here's an example on how I did this showing the conversion of wow32.lib
 import library.

  > dir wow32.lib
 2005-04-15  00:35             3 584 wow32.lib

 -- ex animo
 - Ingi
Thanks Ingi. I got them all converted correctly. Doug
Apr 15 2005