Ultra fatal error LNK1136: invalid or corrupt file

G

Guest

I have a C++ program that I am trying to get to compile and link in VS2003.
It is an old windows program that was built and maintained with older
versions of VS and VC++. I made the necessary changes to get it to compile
in the VS2003 these included:
• Changing “#include <fstream.h>†to “#include <fstream>†and adding “using
namespace std;†to the code.
• Changing several loop counters from “for<i= …†to “for <int i= … “
• Recasting several integer to doubles
• Adding parentheses “()†to unconfuse an ampersand “&†in an “if†statement.
It now compiles but will not link to the one custom DLL we are suing and
have been using. The error is:
“Ultra fatal error LNK1136: invalid or corrupt fileâ€
There is little or no information in the MSDN Library for this error.

I do get the several warning the following are several examples:
†c:\Projects\Legacy\SelProgramTryOn9-16\ACCondenserDataA.cpp(121): warning
C4995: 'CDaoRecordset': name was marked as #pragma deprecatedâ€

“c:\Projects\Legacy\SelProgramTryOn9-16\Ultra.cpp(87): warning C4996:
'CWinApp::Enable3dControls' was declared deprecatedâ€

“c:\Projects\Legacy\SelProgramTryOn9-16\ACCondenserDataA.cpp(104): warning
C4995: 'CDaoFieldExchange': name was marked as #pragma deprecatedâ€

“c:\Projects\Legacy\SelProgramTryOn9-16\ULTRA.H(21): warning C4995:
'CDaoDatabase': name was marked as #pragma deprecatedâ€

I do not have the code the custom DLL and I am not sure I can get it. We do
not need to change the DLL and it has been use for several versions of the
program.

The questions I have are:

Could the changes I made to get it to compile in VS2003 have caused the Link
error?

Is there a way to get the Linker to be more verbose and give more details?

Also, what is “#pragma deprecated†and how does one get ride of it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top