Jump to content


linking error


2 replies to this topic

#1 rajesh kumar

    Member

  • Members
  • PipPip
  • 30 posts

Posted 30 March 2009 - 07:15 AM

Hello to all
I am using Visual Studio 2008 Express edition.
When I compiling in debug mode i got this following error
"fatal error C1900: Il mismatch between 'P1' version '20080116' and 'P2' version '20070207'"
Same code compiling in release mode i got this following error


Code:
1>Linking...
1>fatal error C1047: The object or library file '.\obj\Release\main.obj' was created with an older compiler than other objects; rebuild old objects and libraries
1>LINK : fatal error LNK1257: code generation failed

some one please help me fix this
Thanks in advance


--Rajesh--

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4969 posts
  • LocationBellevue, WA

Posted 30 March 2009 - 07:29 AM

According to the MSDN, this error is caused by mismatched versions of the compiler front-end and back-end. This could be caused if you've recently installed a service pack or other update to the compiler, in which case the objects/libraries built with the old version might not be 100% compatible with the new version. To fix it you need to do like it says - clear out any old objects and libraries (Build > Clean Solution will probably do the job), then try building again.

This could also be caused if for some reason you have parts of the toolchain from different versions of VS. That might happen if a service pack or update installation failed or was aborted partway through, or if you've been messing with the files manually in some way. If that's the case, you should probably just reinstall VS.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 rajesh kumar

    Member

  • Members
  • PipPip
  • 30 posts

Posted 30 March 2009 - 09:23 AM

Thanks for reply
Actually i tried to learn from the existing open source code.I don't know its a error in coding or visual studio version.

--Rajesh--





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users