Archived

This topic is now archived and is closed to further replies.

Horn

Help making .lib files

Recommended Posts

I''m trying to turn a class of mine into an easy to distribute static library but I cannot for the life of me figure out how. I''m using MSVC++ 7.1. Below are the steps that I tried. New Win32 console project --Under App settings I choose Static library leaving everything else as is I add existing files (the header and source files that make up my class) I try to compile but it says that "fatal error C1010: unexpected end of file while looking for precompiled header directive" Can anyone point me in the right direction?

Share this post


Link to post
Share on other sites
Well I got the libary to compile fine but I can''t get it to link with another program. It complains about redefined symbols in msvcprt.lib and libcp.lib. From the errors it mostly looks to be complaing about STL and standard C++ functions (std::string, atoi, exit etc).

Share this post


Link to post
Share on other sites
Make sure that all libs and the exe use the same runtime library (found under Code Generation).
Seems you are mixing multi- and singlethreaded versions.

[edited by - VolkerG on October 8, 2003 6:03:07 PM]

Share this post


Link to post
Share on other sites