Serving the Quantitative Finance Community

 
User avatar
findle
Topic Author
Posts: 0
Joined: August 15th, 2009, 12:50 pm

How to make my own c++ library?

June 29th, 2010, 9:11 pm

I wrote bunch of classes and functions in .h and .cpp filesNow I create another project in different place, and want to use these functions.I add the directory and include the head files, but there coming up linking errors if I don't add all these files to the new project.How to create a c++ library so that I can just give it the path to the directory and .lib file?
 
User avatar
ahew
Posts: 0
Joined: November 30th, 2002, 12:43 pm

How to make my own c++ library?

June 30th, 2010, 6:49 am

Hi,You may find the information about creating/using static libraries at http://msdn.microsoft.com/en-us/library/ms235627.aspx very useful. There's a similar article for using dll's.