I am trying to use this C++ SDK
https://github.com/meganz/sdk
At first it seemed pretty straightforward, just add the
megaapi.h
header and start using it, but I am having a lot of troubles
Here is what I have done so far:
I downloaded the repo and copied all the contents from the folder 'include' to the folder 'include' in MinGW, then I tried to compile this example
https://github.com/meganz/sdk/blob/develop/examples/win32/testmega/main.cpp.
It throws a lot of undefined references to functions errors such as these examples,
undefined reference to `mega::MegaListener::onUserAlertsUpdate(mega::MegaApi*, mega::MegaUserAlertList*)'|
undefined reference to `mega::MegaError::getErrorCode() const'|
undefined reference to `mega::MegaApi::getRootNode()'|
which are the functions in classes in
megaapi.h
header.
The definitions of these functions are, however, in the .cpp files in the 'src' folder. I tried to copy these files to the 'include' folder in MinGW but I still have the same problems.
I never used any SDK and I have no idea how to build this one, the steps I should take.
Any guidance would be appreciated!!