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:
- to add header files include directory
-iflag - to add library path
poco c++ *.sofiles-lflag - to add library name compiler without
libprefix, example pocopoco-foundation, name of file in systemlibpoco-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
Comments
Post a Comment