   Creating a library... easy how-to question...
  If I have a .h file that is... class CTest{   CTest( void );};and a .cpp file that is...   #include "test.h"CTest::CTest( void ){   printf("Instantiating CTest...");}what do I need to change in each to compile the .cpp file into a library?  Or do I?  [edited by - smitty1276 on February 11, 2004 6:50:25 PM]
  It depends on your operating system, your compiler and the type of library you want to create.    “Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”    — Brian W. Kernighan (C programming language co-inventor);  Windows, VC6, and just your everyday .lib...;  Create a Static Library project. Add .cpps, no main(). Build.Oh, and read the docs. Really, it''s in there! ;  Yeah, but sometimes the MSDN is so convoluted it''s hard to find exactly what you need.The static lib, though, is easy to find.  I apologize.  For some reason I was thinking about DLLs, which aren''t so straightforward.  Thanks, though.;quote:Original post by smitty1276  Yeah, but sometimes the MSDN is so convoluted it''s hard to find exactly what you need.Checked your compiler''s docs? 