Adding POCO C++ Library Netbeans on Linux -


i trying use poco c++ library netbeans ide on ubuntu linux 13.04. have downloaded, build , installed poco c++ library. library can found in directory "/usr/local/include/poco". know how add poco c++ library netbeans ide , able work it. please answer details.

thank you

to link external libraries need in general 3 things:

  1. to add header files include directory -i flag
  2. to add library path poco c++ *.so files -l flag
  3. to add library name compiler without lib prefix, example poco poco-foundation , name of file in system libpoco-foundation.so

now netbeans specific

for header files

file -> project properties -> build -> c++ compiler -> general -> include directories step one

for library directories

project -> properties -> linker -> additional library directories step two

for library

project -> properties -> linker ->libraries -> add option -> other library file, step three.

in case of poco libraries handled boost libraries, example

#include "poco/autoptr.h" 

this means include directory has 1 level poco folder. example if poco folder on "/usr/local/include/poco" need add "/usr/local/include" include directories (from step one).

as -l/usr/local/include/poco not how done. path path specific library, in case of poco there foundation, xml, net, , util along test projects. need find files named libpoco-*.so "*" means something. in directory usr/local/lib if files not there in usr/local/lib/poco

if there no files named libpoco-*.so have build poco libraries separately.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -