Posted By: BeSharp | Jun 12th, 2008 @ 11:31 AM
page 1 of 1
Comments: 3 | Views: 729

From a partner I've received .lib files. Windows Explorer says "Object File Library". However, it seems as if I cannot reference them from within Visual Studio. How do I use .lib files, then? They are supposed to be C++ libs for i386.

W3bbo
W3bbo
The Master of Baiters
They're compiled static libraries, object code, used in conjunction with header files. Without the header files they're useless.

Add the libs to the right place in your C++ References (under Project properties) and you should be all set.


http://en.wikipedia.org/wiki/Static_libraries
littleguru
littleguru
<3 Seattle
You can also add them to the VC++ project.. works also fine... they get linked in by default (not copied).
mstefan
mstefan
Windows SDK coders do it without a .NET
That's presuming that they're .lib files created by Visual C++. If they were created using another compiler (or more specifically, the librarian for that compiler) then you might be out of luck. For example, the librarian for the DM C++ compiler produces object libraries that aren't compatible with Microsoft's linker.
page 1 of 1
Comments: 3 | Views: 729
Microsoft Communities