Today I imported a
self-development library on Windows, but when the program just calls a
simple entry API of that library, the program crashes.
Finally, what I found is, this library depends on one open source third party library, whose the highest library version is, Visual Studio 2005 in official download website . But my current Visual Studio is 2010, and it will conflict! That means you need to take the open source by yourself and recompile the library!!
I don't want to do that because I don't want to be the maintenance developer of the library, so I choose a new version third party library which provides Visual Studio 2010 libraries download. But it fails again. And I checked again, our self-development library including path already hard coding the third party version, which means you cannot upgrade to the new version of third party if you want to use the self-development library!!
It seems it is a joke for Visual Studio backward compatibility, so if you want to develop a new library, don't depend on certain version of third party. The dependence should only contains the component name, and it should not contains any kind of version!
Finally, what I found is, this library depends on one open source third party library, whose the highest library version is, Visual Studio 2005 in official download website . But my current Visual Studio is 2010, and it will conflict! That means you need to take the open source by yourself and recompile the library!!
I don't want to do that because I don't want to be the maintenance developer of the library, so I choose a new version third party library which provides Visual Studio 2010 libraries download. But it fails again. And I checked again, our self-development library including path already hard coding the third party version, which means you cannot upgrade to the new version of third party if you want to use the self-development library!!
It seems it is a joke for Visual Studio backward compatibility, so if you want to develop a new library, don't depend on certain version of third party. The dependence should only contains the component name, and it should not contains any kind of version!
No comments:
Post a Comment