It is very often your program will need to link other libraries. Below shows linking to pthread library

    • modified to add pthread function calls
    03
    • compile the code
    • click Run->Build Project
    • it failed because of undefined references
    03
    • To fix it - adding header include path
    • right click project name (e.g helloword) to select Properties
    • click C++ Compiler
    • click Include Directories
    • input the path - e.g. Openwrt-SDK/staging_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/usr/include
    03
    • To fix it - adding library path
    • click Linker
    • click Additional Library Directories
    • input the path - e.g. Openwrt-SDK/staging_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/usr/lib
    • click Additional Options
    • put linking option of the library - "-lpthread"
    • finally, click OK
    03
    • click Run->Build Project
    • results - on bottom Output window
    03
    • Linking options
      • opencv library:
        	-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml 
        	-lopencv_video -lopencv_features2d -lopencv_calib3d 
        	-lopencv_objdetect -lopencv_contrib -lopencv_legacy
        	-lopencv_flann
        	
      • xmlrpc-c library:
        	-lxmlrpc_server_abyss
        	-lxmlrpc_server -lxmlrpc_abyss -lxmlrpc
        	-lxmlrpc_util -lxmlrpc_xmlparse
        	-lxmlrpc_xmltok
        	
      • espeak library:
        	-lespeak -lportaudio -lasound