meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.33k stars 510 forks source link

undefined reference to 'mega::MegaApi::logout(mega::MegaRequestListener*)' #2585

Open DarkFighterLuke opened 3 years ago

DarkFighterLuke commented 3 years ago

The title itself is pretty explanatory.

int main(){
    // Initialize API and make login
    // MyRequestListener is a concrete implementation of SynchronousRequestListener
    MyRequestListener listener=MyRequestListener(); 
    m->logout(&listener);
    listener.wait();
}

When compiling this code, I get that error: undefined reference to mega::MegaApi::logout(mega::MegaRequestListener*)'.