Skip to content

Commit 2bab74c

Browse files
author
abacus_fixer
committed
build(make): link occ_matrix.o to fix undefined reference to OccupationMatrix::get_flat
occ_matrix.cpp was missing from Makefile.Objects, so the Intel Makefile build did not compile/link occ_matrix.o, causing an undefined reference to OccupationMatrix::get_flat in dftu_nao_op.cpp. Add it to OBJS_ELECSTAT to mirror source_estate/CMakeLists.txt, which already lists occ_matrix.cpp in the elecstate object library.
1 parent 5a0b85c commit 2bab74c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/Makefile.Objects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ OBJS_ELECSTAT=elecstate.o\
281281
read_orb.o\
282282
setup_estate_pw.o\
283283
update_pot.o\
284+
occ_matrix.o
284285

285286
OBJS_ELECSTAT_LCAO=elecstate_lcao.o\
286287
init_dm.o\

0 commit comments

Comments
 (0)