If you don't know how to specify linker flags in netbeans then you should probably post this question on a netbeans forum.
If you just don't know what linker flags to use then look at the example makefiles that come with CPLEX. They can be found in directories
cplex/examples/x86-64_linux/static_pic/Makefile (CPLEX 12.6)
cplex/examples/x86-64_sles10_4.1/static_pic/Makefile (earlier versions)
You can also cd to one of those directories and run 'make blend'. This builds the blend executable from the blend.cpp source files. While doing this it displays the compilation and linking commands used. From there you can pick up any required flags.
#CPLEXOptimizers#DecisionOptimization