Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include C++ library in Netbeans 7.0

Tags:

c++

netbeans

I'm trying the use this library (RollPlay) in my project but I don't know how to include it in my C++ project in Netbeans. Would I just add the .dll and .h files into the project folder, add the files to the project? I'm new to Netbeans and using non built-in libraries.

like image 362
Portaljacker Avatar asked Oct 17 '11 20:10

Portaljacker


People also ask

Does Apache NetBeans support C?

NetBeans C/C support lets you create C and C Application and Library projects with generated makefiles, as well as C and C++ projects with existing sources. You can build, run, and debug your project on the local host (the system from which you started the IDE) or on a remote host running a UNIX® operating system.


1 Answers

A library would normally reside in its own installation directory so you would need to point NB to where that is. If you right-click the project name in the "Projects" window, you'll have a Properties option.

  • Select the Build/C++ compiler option to add the directory for the .h files.
  • Select the Build/Linker to add the directory for the dll file.
like image 117
Captain Giraffe Avatar answered Sep 24 '22 20:09

Captain Giraffe