project-gemmi / gemmi

macromolecular crystallography library and utilities
https://project-gemmi.github.io/
Mozilla Public License 2.0
232 stars 46 forks source link

compile error under ubuntu 24 #328

Closed zhangfq-chemistry closed 3 months ago

zhangfq-chemistry commented 3 months ago
/home/zhangfq/Chem/gemmi/prog/options.h:93:24: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword 93 namespace gemmi { enum class CoorFormat : std::uint8_t; } ~~ ^~~

/home/zhangfq/Chem/gemmi/prog/options.h:93:30: error: use of enum ‘CoorFormat’ without previous declaration 93 | namespace gemmi { enum class CoorFormat : std::uint8_t; } | ^~~~~~ /home/zhangfq/Chem/gemmi/prog/options.h:93:41: error: expected unqualified-id before ‘:’ token 93 | namespace gemmi { enum class CoorFormat : std::uint8_t; } | ^ /home/zhangfq/Chem/gemmi/prog/options.h:97:8: error: ‘CoorFormat’ in namespace ‘gemmi’ does not name a type 97 | gemmi::CoorFormat coor_format_as_enum(const option::Option& format_in);

zhangfq-chemistry commented 3 months ago

(1) How to fill all the sites inside the cell? for example, from (0,0,0) to all the eight sites. (2) How to patch the bond across the border for those organic molecule fragment?