Skip to content

delete synthesizer这是个语法错误吗? #15

@Gaomaxxr

Description

@Gaomaxxr
    
    JNIEXPORT void JNICALL

    Java_com_cxp_learningvideo_FFEncodeActivity_releaseEncoder(JNIEnv *env, jobject thiz, jint synthesizer) {

        Synthesizer *s =  (Synthesizer *)synthesizer;

        delete synthesizer;
     }

源native-lib.cpp中这里delete synthesizer这一行报错:

...\LearningVideo-master\app\src\main\cpp\native-lib.cpp:137:9: error: cannot delete expression of type 'jint' (aka 'int')

这里我运行是有问题的,我c/c++不是很懂,ndk小白,能请教一下吗,谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions