evaleev / libint

Libint: high-performance library for computing Gaussian integrals in quantum mechanics
Other
218 stars 97 forks source link

C++ compiler cannot create executables #213

Closed FreemanTheMaverick closed 2 years ago

FreemanTheMaverick commented 2 years ago

My laptop is already equipped with clang++ and g++, but on configuring libint, it shows that

checking for clang++... clang++
checking whether the C++ compiler works... no
configure: error: in `/home/freeman/LibintCompiler':
configure: error: C++ compiler cannot create executables

I wonder why the C++ compiler does not work and how I can fix it. Many thanks. Here is the log file. config.log

e-kwsm commented 2 years ago
     7      $ ../libint/configure --enable-eri=2 --enable-eri3=2 --enable-eri2=2 CPPFLAGS=-I/usr/local/include LDFLAGS=/usr/local/lib CC=g++
evaleev commented 2 years ago

@FreemanTheMaverick , did @e-kwsm 's suggestions work?

FreemanTheMaverick commented 2 years ago

Thanks for the suggestions. But I've found that I don't really need to compile libint from scratch, so I just download a precompiled library. I appreciate your help anyway.