'I have compiled my cpp code to generate a dll file in visual studio, but I cannot find the generated dll file. Is there any default name for dll in vs

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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Minxin Yu - MSFT