Home > Enterprise >  I have compiled my cpp code to generate a dll file in visual studio, but I cannot find the generated
I have compiled my cpp code to generate a dll file in visual studio, but I cannot find the generated

Time:05-17

The code compiled:

#include <jni.h> // JNI header provided by JDK
#include <iostream>    // C   standard IO header
#include "HelloJNI.h"  // Generated
#include <string>

using namespace std;

// Implementation of the native method sayHello()
JNIEXPORT void JNICALL Java_HelloJNI_sayHello(JNIEnv* env, jobject thisObj)
{
    cout << "Narain C A";
}

int main() {
    JNIEXPORT void Java_HelloJNI_sayHello();
}

How to find the generated dll file in visual studio?

CodePudding user response:

You can check the output directory macros in Properties. enter image description here

  • Related