Link to home
Start Free TrialLog in
Avatar of kalukaley
kalukaleyFlag for United States of America

asked on

Static library compatibility

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.
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

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.
 
Avatar of kalukaley

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks