What could prevent me from linking with a third-party .lib built with Visual Studio 2008 in a program that I compile with Visual Studio 2005? Thanks
What could prevent me from linking with a third-party .lib built with Visual Studio
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update: This applies to DLLs only, which was the original question. With static libraries, all hope is lost.
I’ll try to summarize a few facts:
Thus it is safe to call functions and methods, passing data types that are entirely (that is, including their members) defined
For pointer members, the rule is relaxed if the pointer is never dereferenced.
Now the tricky part:
CoTaskMemAlloc()/CoTaskMemFree().structcontaining STL types is unsafe.