[gmx-users] compile template.c

Park, Jae Hyun nmn parkj at ornl.gov
Thu Aug 11 23:47:58 CEST 2011


Dear GMX users,

Now, I am trying to write my own gromacs analysis code with gromacs 4.5.3.
As a first test, when I run "make" in the directory of "template" I got the following message:

------------------------------
cc  -O3 -fomit-frame-pointer -finline-functions -Wall -Wno-unused -msse2 -funroll-all-loops -std=gnu99 -pthread -I./include  -I/usr/include/libxml2 -I/home/h1y/gromacs-4.5.3s/include    -I/home/h1y/fftw3s/include  -c -o work.o work.c

cc  -L/home/h1y/gromacs-4.5.3s/lib -L/home/h1y/fftw3s/lib   -o work work.o -lmd -lgmx -lfftw3f -lxml2  -lnsl -lm    

/home/h1y/gromacs-4.5.3s/lib/libgmx.a(vmddlopen.o)(.text+0x6): In function `vmddlopen':

: undefined reference to `dlopen'

/home/h1y/gromacs-4.5.3s/lib/libgmx.a(vmddlopen.o)(.text+0x11): In function `vmddlerror':

: undefined reference to `dlerror'

/home/h1y/gromacs-4.5.3s/lib/libgmx.a(vmddlopen.o)(.text+0x21): In function `vmddlsym':

: undefined reference to `dlsym'

/home/h1y/gromacs-4.5.3s/lib/libgmx.a(vmddlopen.o)(.text+0x31): In function `vmddlclose':

: undefined reference to `dlclose'

collect2: ld returned 1 exit status

make: *** [work] Error 1


I would deeply appreciate if any help why I got those erros and how to figure out.

Best regards,
Jae H. Park


===================
Jae Hyun Park, Ph.D.
Physics Division
Oak Ridge National Laboratory
P.O. Box 2008, MS-6372
Oak Ridge, TN 37831
Phone (865) 241-1482
E-mail parkj at ornl.gov


More information about the gromacs.org_gmx-users mailing list