简体   繁体   中英

How to use a library in other c++ code?

I'm trying to use a library in my code. But as I'm new in c++ , I couldn't do that without any errors. First I copied library in my main file and then in my main code I just included .h files. When I ran it, it gave me some errors like:

error LNK2019: unresolved external symbol "public: __cdecl library"

The library contains .cpp and .h files of functions. I'm doing it in Visual Studio 2012. What should I do to use this lib?

Assuming you are using this library, The documentation to make an installation on Visual Studio is located here .

If this is your first time with C++ then this is a very complex project to start with... Using a library is a complex process as every single one has a diferent installation method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM