Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » MSVC++ 2008 v9.0 fatal error LNK1127: library is corrupt

This thread is locked; no one can reply to it. rss feed Print
MSVC++ 2008 v9.0 fatal error LNK1127: library is corrupt
Serpent7
Member #11,275
August 2009

Hi. I'm using the files from http://cdn.allegro.cc/4.2.2/allegro-msvc90-4.2.2.zip .

I keep getting this error, and only this error, when I go to build my project:

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\alleg_s.lib : fatal error LNK1127: library is corrupt

What could be causing this? The linker command is here, ask if you need more details:

/OUT:"C:\Users\Ben\Documents\Visual Studio 2008\Projects\Sauria\Debug\Sauria.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files\boost\boost_1_39\lib\\" /MANIFEST /MANIFESTFILE:"Debug\Sauria.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\Ben\Documents\Visual Studio 2008\Projects\Sauria\Debug\Sauria.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Matthew Leverton
Supreme Loser
January 1999
avatar

Do you have SP1 installed for MSVC?

Serpent7
Member #11,275
August 2009

Yes.

Don Freeman
Member #5,110
October 2004
avatar

Try to redownload it. Maybe your download manager/browser did not download the file correctly.

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

Serpent7
Member #11,275
August 2009

Tried that three times, and now once more. No change.

Don Freeman
Member #5,110
October 2004
avatar

Sorry...never really used the alleg_s.lib. I always just use alleg.lib Can you compile allegro on your system? Try using just alleg.lib to see if it makes any difference. Others here will be able to help more than I can with this though... :-/ I have uploaded mine...don't know if it will make a difference.

Edit:
I tried a program I had, and I got a lnk1257 error. Of course, I never use static linking though...so I'm sure I set something wrong somewhere. ::)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

Serpent7
Member #11,275
August 2009

Using alleg.lib has apparently resolved the problem.

Thank you; though I doubt this'll be the last you hear from me. :}

Don Freeman
Member #5,110
October 2004
avatar

The alleg_s.lib is for static linking. If you compiled your program for dynamic linking that would explain that. Some of the other libs you are using might not be compiled as static...that could have caused issues as well. I say go with what works! Any more questions just ask...someone will help. Might not always be right away, but someone usually chimes in within a day or so. Good luck! 8-)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

Go to: