Netbeans C++ compile error: undefined reference to <function name>
<p>I'm using Java native interface(JNI) to call upon a function from a c++ DLL. Bumped into this error of undefined reference to  while compiling on the line of code where i instantiate  BSSSystemUsageDataTable * x = new BSSSystemUsageDataTable(). I've already included all the required header files and lib files/paths. I'm not too sure what they are asking for because when i use x ->, all the function names in BSSSystemUsageDataTable.h shows up under netbeans. Any help is deeply appreciated. :) Thanks dudes. </p>

<pre><code>#include &lt;jni.h&gt;                     
#include "PocWrapperNative.h"       
#include "BSSSystemUsageDataTable.h"
#include "inc/bssdevparam.h" /* Header of requried DLL */

using namespace BSSParameter;

JNIEXPORT jboolean JNICALL
Java_PocWrapper_decoding(JNIEnv *env, jobject obj, jstring s){

    const char* str;
    str = env -&gt; GetStringUTFChars(s, 0);
    printf("From C++ %s", str);
    BSSSystemUsageDataTable * x = new BSSSystemUsageDataTable();  //**error code line**
    x -&gt;decode(str, false);
    env-&gt;ReleaseStringUTFChars(s, str);
    return false;
}
</code></pre>

<p>Error Output:</p>

<pre><code>build/Debug/MinGW_1-Windows/_ext/1106720024/PocCppNative.o: In function `Java_PocWrapper_decoding@12':
c:/Program Files/Java/jdk1.6.0_23/bin/PocCppNative/PocCppNative.cpp:49: undefined reference to `_imp___ZN12BSSParameter24CBSSSystemUsageDataTableC1Ev'
collect2: ld returned 1 exit status
</code></pre>
