.lib & .a extensions

Jan 15, 2010 at 9:15am
Hello

Does anyone know the difference between libraries with .lib and those with .a extension?

I use Eclipse CDT for coding. A library compiled with Eclipse has .a extension; Visual Studio seems to use .lib.

Thanks
Jan 15, 2010 at 1:00pm
The .a is almost certainly a static library. It's a Unix convention.

The Unix convention for static libraries is libname.a, and for shared libraries libname.so.

The Windows convention for static libraries and the (static) stub for dynamic link libraries is name.lib and for DLLs name.dll. It should be noted that different kinds of DLLs are sometimes given different extensions.
Last edited on Jan 15, 2010 at 1:30pm
Topic archived. No new replies allowed.