{"action":"opened","issue":{"url":"https://api.github.com/repos/ValeevGroup/mpqc/issues/40","labels_url":"https://api.github.com/repos/ValeevGroup/mpqc/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/ValeevGroup/mpqc/issues/40/comments","events_url":"https://api.github.com/repos/ValeevGroup/mpqc/issues/40/events","html_url":"https://github.com/ValeevGroup/mpqc/issues/40","id":106151794,"number":40,"title":"Compile error with -DMPQC_R12 (but no -DMPQC_NEW_FEATURES)","user":{"login":"mbanck","id":1670301,"avatar_url":"https://avatars.githubusercontent.com/u/1670301?v=3","gravatar_id":"","url":"https://api.github.com/users/mbanck","html_url":"https://github.com/mbanck","followers_url":"https://api.github.com/users/mbanck/followers","following_url":"https://api.github.com/users/mbanck/following{/other_user}","gists_url":"https://api.github.com/users/mbanck/gists{/gist_id}","starred_url":"https://api.github.com/users/mbanck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbanck/subscriptions","organizations_url":"https://api.github.com/users/mbanck/orgs","repos_url":"https://api.github.com/users/mbanck/repos","events_url":"https://api.github.com/users/mbanck/events{/privacy}","received_events_url":"https://api.github.com/users/mbanck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-12T12:12:22Z","updated_at":"2015-09-12T12:12:22Z","closed_at":null,"body":"If I don't turn on MPQC_NEW_FEATURES, but provide Libint2 (so -DMPQC_R12 is set), I get a compile error in pt2r12.cc:\r\n\r\n```\r\n$ cd \"/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/obj-x86_64-linux-gnu/src/lib/chemistry/qc/mbptr12\" && /usr/bin/c++   -DHAVE_CONFIG_H -DMPQC_R12 -g -O2 -std=c++11  -I\"/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/obj-x86_64-linux-gnu/src/lib\" -I\"/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib\" -I\"/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/include\" -I/usr/include/eigen3 -I/usr/include/libint2    -o CMakeFiles/mbptr12.dir/pt2r12.cc.o -c \"/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc\"\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc: In constructor ‘sc::PT2R12::PT2R12(const sc::Ref<sc::KeyVal>&)’:\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:167:24: error: expected primary-expression before ‘&’ token\r\n PT2R12::PT2R12(StateIn &s) : Wavefunction(s) {\r\n                        ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:167:25: error: ‘s’ was not declared in this scope\r\n PT2R12::PT2R12(StateIn &s) : Wavefunction(s) {\r\n                         ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:167:26: error: cannot call constructor ‘sc::PT2R12::PT2R12’ directly [-fpermissive]\r\n PT2R12::PT2R12(StateIn &s) : Wavefunction(s) {\r\n                          ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:167:26: note: for a function-style cast, remove the redundant ‘::PT2R12’\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:181:17: error: no matching function for call to ‘sc::PT2R12::~PT2R12()’\r\n PT2R12::~PT2R12() {\r\n                 ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:181:17: note: candidate is:\r\nIn file included from /home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:31:0:\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.h:253:7: note: virtual sc::PT2R12::~PT2R12()\r\n       ~PT2R12();\r\n       ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.h:253:7: note:   candidate expects 2 arguments, 0 provided\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:187:29: error: qualified-id in declaration before ‘(’ token\r\n void PT2R12::save_data_state(StateOut &s) {\r\n                             ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:199:17: error: qualified-id in declaration before ‘(’ token\r\n PT2R12::obsolete() {\r\n                 ^\r\n/home/mbanck/debian/debichem/packages/mpqc3-0.0~git20150911/src/lib/chemistry/qc/mbptr12/pt2r12.cc:1948:1: error: expected ‘}’ at end of input\r\n }\r\n ^\r\n```\r\n\r\nIs this a supported configuration, and if so, is this a known issue or am I doing something wrong? MPQC3 builds fine for me if I omit Libint2."}}