简体   繁体   中英

How do I add a library to my NetBeans C++ project?

I want to use the boost library in order to use some of its functions but I don't know how to do so and cannot seem to find an answer.
I'm currently using NetBeans 8.0.1 ,any help is appreciated.

You have to add two things:

(a) Library header

Go to …

Project Properties -> C++ Compiler -> Include Directories

add the header's directory path there.

(b) Library binaries

Go to …

Project Properties -> Linker -> Additional Libraries Directory

and add the directory path - that's where your library binaries are.

Next add your library at:

Libraries .

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