Skip to content

"LangevinIntegrator is not a member of OpenMM" error on make PythonInstall #28

@SCMusson

Description

@SCMusson

I have come across an error that is really perplexing me.

I have tried to create a custom integrator. It compiles, and tests are all successful. But when I come to make the python wrappers i run into issues with this error code:

ExamplePluginWrapper.cpp: In function ‘void* _p_OpenMM__LangevinIntegratorTo_p_OpenMM__Integrator(void*, int*)’:
ExamplePluginWrapper.cpp:10474:55: error: ‘LangevinIntegrator’ is not a member of ‘OpenMM’
     return (void *)((OpenMM::Integrator *)  ((OpenMM::LangevinIntegrator *) x));
                                                       ^~~~~~~~~~~~~~~~~~
ExamplePluginWrapper.cpp:10474:55: note: suggested alternative: ‘DrudeLangevinIntegrator’
     return (void *)((OpenMM::Integrator *)  ((OpenMM::LangevinIntegrator *) x));
                                                       ^~~~~~~~~~~~~~~~~~
                                                       DrudeLangevinIntegrator
ExamplePluginWrapper.cpp:10474:75: error: expected primary-expression before ‘)’ token
     return (void *)((OpenMM::Integrator *)  ((OpenMM::LangevinIntegrator *) x));
                                                                           ^
ExamplePluginWrapper.cpp:10474:77: error: expected ‘)’ before ‘x’
     return (void *)((OpenMM::Integrator *)  ((OpenMM::LangevinIntegrator *) x));
                                                                             ^
ExamplePluginWrapper.cpp:10474:80: error: expected ‘)’ before ‘;’ token
     return (void *)((OpenMM::Integrator *)  ((OpenMM::LangevinIntegrator *) x));
                                                                                ^

I haven't touched OpenMM::LangevinIntegrator and it doesn't have a problem with anything else

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions