Dear CalculiX community,
I try to make a version of CalculiX for usage with shared objects. I added the flags
-DCALCULIX_EXTERNAL_BEHAVIOURS_SUPPORT and
-DCALCULIX_EXTERNAL_BEHAVIOURS_DEBUG in the Makefile and at the end I get the message:
:
./date.pl; cc -Wall -O2 -I …/…/…/…/SPOOLES.2.2 -DARCH=“Linux” -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT -DCALCULIX_EXTERNAL_BEHAVIOURS_SUPPORT -DCALCULIX_EXTERNAL_BEHAVIOURS_DEBUG -fPIC -DPIC -c ccx_2.22.c; gfortran -Wall -O2 -o ccx_2.22 ccx_2.22.o ccx_2.22.a …/…/…/…/SPOOLES.2.2/spooles.a …/…/…/…/ARPACK/libarpack_INTEL.a -lpthread -lm -lc -fopenmp
/usr/bin/ld: ccx_2.22.a(external.o): undefined reference to symbol ‘dlsym@@GLIBC_2.2.5’
//usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:31: ccx_2.22] Error 1
Does anyone have the same problems or a solution, a hint for this.
The compilation without the both flags works without any problems.
Thanks in advance for support and answers.
Cetin