The problem is that the same code that compiles well on Windows, is unable to compile on Ubuntu. Every time I get this error:
cc1: warnings being treated as
Remove -Werror from your Make or CMake files, as suggested in this post
-Werror