Static library compatibility

kalukaley
kalukaley used Ask the Experts™
on
Can a static lib built using Visual Studio 2008, be linked into a Visual Studio 2005 project?

We want to avoid recompiling the VS 2008 if at all possible.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Yes. The library build in VS 2008 can be used in VS 2005.
In the VS 2005 project you will use only h-files and the lib-file. LIB file format was not changed.
Of course you may meet some problems - everything depends on the library source code. For example, does it use CString, MFC, etc.
 

Author

Commented:
Thanks,  

Would there be any issues if I used the c++ standard library (STL specifically)?

Are there any compiler settigngs that I'd "BETTER" use?
Any compiler settings that I'd "BETTER NOT" use?
Commented:
No. At least I've not heard about a problem with the STL if you are talking about the pc applications. There are problems when you need to develop for Windows CE devices - it's not related to the migration from VS2005 to 2008.
Nothing special about BETTER, it's all usual, from my point of view. Actually, all depends on the project size you are developing.
 

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial