You might encounter an error if you are using g++ compiler on linux and use it to compile a clexulator which reads:
-- Compiling: input_files/SiGe_Clexulator_default.cc --
compile time depends on how many basis functions are included
dlopen failed: input_files/SiGe_Clexulator_default.so: undefined symbol: _ZTIN4CASM10clexulator14BaseClexulatorE
Error compiling clexulator. To fix:
- Check compiler error messages.
- Check compiler options with 'casm settings -l'
- Update compiler options with 'casm settings --set-compile-options '...options...'
- Make sure the casm headers can be found by including '-I/path/to/casm'
Clexulator construction failed: could not construct runtime library.
The way to fix it is to set the following environment variable before compiling the clexulator:
export CASM_SOFLAGS=-shared -Wl,--no-as-needed
You might encounter an error if you are using
g++
compiler on linux and use it to compile a clexulator which reads:The way to fix it is to set the following environment variable before compiling the clexulator:
export CASM_SOFLAGS=-shared -Wl,--no-as-needed