Hi
i am creating an application in MFC using VS 2008 using third party SDK. i am compling this
application in Debug mode it work fine. But when i am compiling this application in release mode
i get this linking error.
fatal error C1047: The object or library file '../lib/SIPEvent.lib' was created with an older compiler than other objects; rebuild old objects and libraries
thanks.
It means the release version of that SIPEvent.lib was not built with VS 2008. In order for your app to work properly, you need to get a new build for it, with VS 2008.
It means the release version of that SIPEvent.lib was not built with VS 2008. In order for your app to work properly, you need to get a new build for it, with VS 2008.
Thanks.
Actually i have Lib file and Dlls but not source code. so how i can get a new build in VS2008.
because i am new one in this.
I have the same issue where I got an SDK lib (no DLL) from MSVC 2005 Professional,
and I have to link this lib statically with my code to create a ABC.DLL
under MSVC 2008 Professional.
...and one website suggested that
to change settings on:
C/C++ > Optimization > "Whole Program Optimization" from "/GL" to "No".
Then, it compiled and built properly.
Then, I have an ABCTest.exe program that links with this ABC.DLL.
It first asked for msvcr90.dll, and msvc*90.dll.
I provided all of those, and it ended up a runtime error.
C1047 is caused when object files or libraries built with /LTCG are linked together, but where those object files or libraries are built with different versions of the Visual C++ toolset.
You do not need to same version .LIB to use in your application.
Assume for example, you have DLL and LIB file which was built using VC8 (or say VC6). You still can use it in VC8, VC9, CV10.
You have also mentioned that you can successfully build in Debug, but not in Release. That means, there must be problem with compiler/linker optimization. In Project properties, try removing 'Link time code generation', and then rebuild.
Also, you did not mention if .LIB is static library, or the DLL is with it.
../lib/SIPEvent.lib' - linked in ABC.DLL or the EXE? Or Both??
I don't use SIPEvent.lib at all. It's not mine, and I don't use it.
It's a matter from some other post earlier.
Don't fiddle with VC runtime library settings. Restore them!
Is your DLL generated successfully?
YES
Are all .LIBs Release Builds?
SDK.lib is Release, and ABC.lib and ABC.dll are Debug.
ABCTest.exe is Debug.
No service pack issues of VC8 with ABC.DLL and your EXE?
Don't know.
Did not fiddle with Manifest settings?
Not sure. I am using embeded Manifest file, and
it has a reference to both msvc80 and msvc90 DLL(s).
Does it make sense ?
Bookmarks