开发者

How do you include an external library in your own project for C++?

开发者 https://www.devze.com 2022-12-12 23:11 出处:网络
So I\'m quite new to C++, I\'ve basically been coding it all semester for a class. For our final project, we made an email client in C++ with .NET, and to do all the email sending and receiving, we we

So I'm quite new to C++, I've basically been coding it all semester for a class. For our final project, we made an email client in C++ with .NET, and to do all the email sending and receiving, we went with using 开发者_Go百科the POCO email client.

Now, basically in order to use the POCO library, I've compiled it and done a number of things, such as adding the includes and libraries into the project using the path to where I compiled (on the desktop..), and I also had to add the path to the windows path.

SO, my question is, if I want to be able to package the POCO libraries into my project, how am I going to be able to do that? I can't really find a tutorial for this anywhere, any help would be appreciated.

Thanks! :)


If you're using Visual Studio, there should be some info in the MSDN Help Center. Here is the online version for VS2008 from the MSDN library.


Create the helper POCOs in a dll and place these in a known location under the project directory - called say "OtherAssemblies". then in your project add references to these dlls using Add reference on the project r-click menu. then test. After completion. Give the prof the whole directory with project she can open the project and compile.

Make it easy on her - put a zip of the POCOs source code in same directory she can see it with out having to ask for them if she needs to but at the same time avoiding compiling.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号