Thanks a lot to Sikandar Mashayak. Yes, it really dose work when all
libraries are complied as shared ones.

On Wed, Sep 16, 2015 at 12:25 AM, <[email protected]> wrote:

> [email protected]
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/votca/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> Topic digest
> View all topics
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/votca/topics>
>
>    - how to deal with 'undefined reference' while running ./build.sh
>    <#14fd1d2ebaf67bb4_group_thread_0> - 3 Updates
>
> how to deal with 'undefined reference' while running ./build.sh
> <http://groups.google.com/group/votca/t/3e44150ad5462a2d?utm_source=digest&utm_medium=email>
> Wu Chaofu <[email protected]>: Sep 15 05:12PM +0800
>
> Dear votca-ers,
> I try to install votca with the following command lines
>
> ./build.sh --prefix ${prefix} tools cg
> -DEXPAT_LIBRARY=/usr/local/expat/lib/libexpat.a
> -DEXPAT_INCLUDE_DIR=/usr/local/expat/include
> -DFFTW3_LIBRARY=/usr/local/fftw/lib/libfftw3.a
> -DFFTW3_INCLUDE_DIR=/usr/local/fftw/include
> -DGSL_LIBRARY=/usr/local/gsl/lib/libgsl.a
> -DGSL_INCLUDE_DIR=/usr/local/gsl/include/
> -DGSLCBLAS_LIBRARY=/usr/local/gsl/lib/libgslcblas.a
> -DSQLITE3_LIBRARY=/usr/local/sqlite/lib/libsqlite3.a
> -DSQLITE3_INCLUDE_DIR=/usr/local/sqlite/include
>
> But the process interrupts with a few outputs
>
> Linking CXX shared library libvotca_tools.so
>
> [ 94%] Built target votca_tools
>
> Scanning dependencies of target votca_property
> [ 97%] Building CXX object
> src/tools/CMakeFiles/votca_property.dir/votca_property.cc.o
> Linking CXX executable votca_property
>
> ../libtools/libvotca_tools.so.3: undefined reference to `dlsym'
>
> ../libtools/libvotca_tools.so.3: undefined reference to `dlerror'
> ../libtools/libvotca_tools.so.3: undefined reference to `dlopen'
> ../libtools/libvotca_tools.so.3: undefined reference to `dlclose'
> collect2: ld returned 1 exit status
> make[2]: *** [src/tools/votca_property] Error 1
> make[1]: *** [src/tools/CMakeFiles/votca_property.dir/all] Error 2
> make: *** [all] Error 2
>
> How to deal with this issue, please? Thanks a lot for any reply.
> Yours sincerely,
> Chaofu Wu
> xiaowu759 <[email protected]>: Sep 15 05:58AM -0700
>
> Either of the following solutions posted previously can not deal with it
>
> install/build a shared version of fftw;
> specify a shared fftw to -DFFTW3_LIBRARY;
> add libm.so to -DFFTW3_LIBRARY
>
>
>
> --
> View this message in context:
> http://votca.966470.n3.nabble.com/how-to-deal-with-undefined-reference-while-running-build-sh-tp4024971p4024972.html
> Sent from the votca mailing list archive at Nabble.com.
> Sikandar Mashayak <[email protected]>: Sep 15 10:00AM -0500
>
> Hi Chaofu Wu,
>
> Try linking to shared libraries .so instead of static (.a). See if that
> helps.
>
> Best,
> Sikandar
>
> Back to top <#14fd1d2ebaf67bb4_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/votca/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to [email protected].
>

-- 
You received this message because you are subscribed to the Google Groups 
"votca" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/votca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to