By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,251 Members | 2,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,251 IT Pros & Developers. It's quick & easy.

Ultra fatal error LNK1136: invalid or corrupt file

P: n/a
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?

--
Michael D. Reed
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.