Apparently, some breaking changes have been introduced and
types.hpp is no more present in
eosio.cdt. That of course is the reason of the error.
However, even if, in the docs https://github.com/EOSIO/eosio.cdt, clearly is specified under eosiolib C++ API that
eosiolib/types.hpp has been removed, this section can be useful for the last updates:
Moved the typedef eosio::extensions_types to eosiolib/transaction.hpp.
Removed comparison functions for checksum structs.
Removal of eosio::char_to_symbol, eosio::string_to_name, eosio::name_suffix functions
Removal of the N macro. The ""_n operator or the name constructor should be used as a type safe replacement. Example: N(foo) -> "foo"_n, or N(foo) -> name("foo").
Moved eosio::name struct definition and ""_n operator to eosiolib/name.hpp