You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All 3rd-party components are built without problems, however, when building the mega sdk itself, errors appear:
error C2220: the following warning is treated as an error
... followed by warnings, mainly related to comparing signed and unsigned integer types, for example
warning C4018: '> =': signed / unsigned mismatch
Analysis showed that the crash is due to the fact that mega sdk projects are built with the /W4 and /WX compiler switches. In previous versions of mega sdk, the assembly was performed with the keys /W3 and /WX-. Fix please.
Thank you. Best regards, Vladimir Malinovsky.
The text was updated successfully, but these errors were encountered:
OK I understood. And so it was conceived.
The file \sdk\CMakeLists.txt contains the following lines:
# warnings as errors, just for windows builds, as warnings keep creeping in. Best if we address them once in the original MRs.
set (CMAKE_CXX_FLAGS_DEBUG "$ {CMAKE_CXX_FLAGS_DEBUG} /WX")
That is, you just need to comment out the second line: # set (CMAKE_CXX_FLAGS_DEBUG "$ {CMAKE_CXX_FLAGS_DEBUG} /WX")
Could have warned, because I spent the whole evening looking for an error. Thank you.
Thanks for letting us know, most of our automated processes are on x64 nowadays. In the meantime, as you discovered, you can easily switch /WX off. thanks
Hello.
OS: Win10 x64 Pro, IDE: Microsoft Visual Studio Community Edition.
When building SDK for Windows (x86), using the method described in the Read.me file (https://github.com/meganz/sdk/blob/master/README.md):
cmake -DTRIPLET=x86-windows-mega-staticdev -DEXTRA_ARGS="-DUSE_PDFIUM=0" -P build_from_scratch.cmake
All 3rd-party components are built without problems, however, when building the mega sdk itself, errors appear:
error C2220: the following warning is treated as an error
... followed by warnings, mainly related to comparing signed and unsigned integer types, for example
warning C4018: '> =': signed / unsigned mismatch
Analysis showed that the crash is due to the fact that mega sdk projects are built with the /W4 and /WX compiler switches. In previous versions of mega sdk, the assembly was performed with the keys /W3 and /WX-. Fix please.
Thank you. Best regards, Vladimir Malinovsky.
The text was updated successfully, but these errors were encountered: