www.digitalmars.com         C & C++   DMDScript  

c++ - Error using PATCHOBJ utility

reply "proware" <prowareinc very-warm-mail.com> writes:
I just purchased PATCHOBJ and Walter e-mailed the utility to me.  I bought 
this to remove the default library information from several LIB/OBJ files. 
All I can get is a "Premature end of file."  Is that normal?  Does this mean 
success?  I can not find a single bit of documentation either on your site 
nor in the files you sent me.  I would love a little support to get me, your 
new customer, up and running... 
Jan 08 2007
parent reply "proware" <prowareinc very-warm-mail.com> writes:
I just purchased PATCHOBJ and Walter e-mailed the utility to me.  I bought 
this to remove the default library information from several LIB/OBJ files. 
All I can get is a "Premature end of file."  Is that normal?  Does this 
mean success?  I can not find a single bit of documentation either on your 
site nor in the files you sent me.  I would love a little support to get 
me, your new customer, up and running...

I want to add that I use VC5.
Jan 08 2007
next sibling parent "proware" <prowareinc very-warm-mail.com> writes:
"proware" <prowareinc very-warm-mail.com> wrote in message 
news:entqg4$1aa6$1 digitaldaemon.com...
I just purchased PATCHOBJ and Walter e-mailed the utility to me.  I 
bought this to remove the default library information from several 
LIB/OBJ files. All I can get is a "Premature end of file."  Is that 
normal?  Does this mean success?  I can not find a single bit of 
documentation either on your site nor in the files you sent me.  I would 
love a little support to get me, your new customer, up and running...

I want to add that I use VC5.

For the sake of documentation... Microsoft's compiler outputs COFF .obj files and PATCHOBJ expects OMF files. The COFF2OMF utility converts these. The Microsoft linker will automatically convert the OMF files back to COFF. This was learned through the help of Walter Bright.
Jan 08 2007
prev sibling parent Walter Bright <newshound digitalmars.com> writes:
proware wrote:
 I just purchased PATCHOBJ and Walter e-mailed the utility to me.  I bought 
 this to remove the default library information from several LIB/OBJ files. 
 All I can get is a "Premature end of file."  Is that normal?  Does this 
 mean success?  I can not find a single bit of documentation either on your 
 site nor in the files you sent me.  I would love a little support to get 
 me, your new customer, up and running...

I want to add that I use VC5.

VC5 generates object files in the MS-COFF format. Patchobj only works on the MS-OMF object file format, which the Digital Mars compiler generates.
Jan 09 2007