Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9316241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:34:05+00:00 2026-06-19T02:34:05+00:00

I am adding extensions to an (another persons) existing project at my company. Now

  • 0

I am adding extensions to an (another persons) existing project at my company. Now I want to import an existing library like boost to it. I am using netbeans for debugging the existing project. Now in order to import a library into netbeans usually 2 steps are followed:

  1. Include directories
  2. Linker-> Add Library.

However when I right click on my existing project the option of Linker->Add Library is not appearing. (Though I have included the directories as that option is there).

Can someone please guide me as to how should I add the library through linker to my existing project? My project is in C++

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:34:06+00:00Added an answer on June 19, 2026 at 2:34 am

    Assuming you are using unix/linux variants:

    Directories for headers and library linking are two different things. Include directories will have the headers needed, but after compilation the actual compiled code that resides in the libraries (*.a, *.so, etc…) might also be required.

    For example, if you are using pthreads, apart from the headers which you need to include, you also need libpthread.

    When linking, you need to provide the flag for linking with pthread i.e: -lpthread
    You can search using find or locate on a unix system to find the libraries. In my case, its in

    /usr/lib/libpthread.so

    Therefore,

    gcc myfile.c -lpthread -o myfile

    Will link myfile.c with pthread library

    Whereas,

    gcc -L/usr/local/lib/

    Tells gcc to look under /usr/local/lib to search for the library (not the header!).

    Telling netbeans where the headers are, isn’t enough, it will probably give you linking errors. Telling netbeans where the libraries are, may be enough, as it might use the proper flags. If that also fails, then you have to specify both the library flags and the path.

    Alternatively, you may use tools like cmake, make, etc which automate this process and provide a bit more control IMO.

    See Link 1
    See link 2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have followed the instructions here [MDC - Adding Extensions using the Windows Registry],
I'm looking to build an application that will rely on adding menu extensions to
I got a requirement in my project to add another property to some class.
I know what you're thinking, ANOTHER netbeans xdebug post? Well, I've tried everything I've
An old Yet Another Language Geek blog post explaining monads describes adding a SelectMany
I would like to create a new lightswitch shell(because I need another layout than
Im trying to create some new extensions in joomla. I want to add additional
I'm a little new to extensions. I looked around for an existing answer before
I need to extend an existing module (namely Redmine::MimeType) by adding a few items
I want to create an XSD for one application and another XSD wich extends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.