[gmx-developers] problem in compiling g_velacc again under gromacs

David van der Spoel spoel at xray.bmc.uu.se
Tue Oct 31 20:53:30 CET 2006


On Tue, 31 Oct 2006, Qiao Baofu wrote:

>Hi all,
>
>I want to comile the g_velacc again. I copy the original  gmx_velacc.c and
>autocorr.c into a new directory, and then comile the gmx_velacc.c, but it
>gives the following complains, and then exits. (I didn't change anything in
>the two files!!)  How to solve it? Thanks a lot.

If you have modified the program it is probably easier to rename it but 
keep it in the same place. Update Makefile.am as well.

>
>**************************************************************************************
>/home/fias/qiao/Gromacs//lib/libgmxana.a(autocorr.o)(.text+0x22b0): In
>function `low_do_autocorr':
>: undefined reference to `xvgropen'
>/home/fias/qiao/Gromacs//lib/libgmxana.a(autocorr.o)(.text+0x2e83): In
>function `low_do_autocorr':
>: undefined reference to `xvgropen'
>/home/fias/qiao/Gromacs//lib/libgmxana.a(expfit.o)(.text+0x6cb): In function
>`do_lmfit':
>: undefined reference to `xvgropen'
>collect2: ld returned 1 exit status
>**************************************************************************************
>
>
>The following are used to compile it:
>GMXDIR='/home/fias/qiao/Gromacs/'
>INCLUDE="-I${GMXDIR}/include/gromacs -I${GMXDIR}/include/gromacs/types"
>
>LIBS="-L${GMXDIR}/lib -L/usr/X11R6/lib -L/lib -L/usr/lib -L${GMXDIR}/lib"
>LDDFLAGS="-lXm -lmd -lm -lgmx -lgmxana -lnsl -lfftw3"
>CCFLAGS="-O3"
>
>gcc -g $INCLUDE $CCFLAGS -c gmx_velacc.c
>gcc -g $CCFLAGS -o g_velacc  gmx_velacc.o -Wall $LIBS $LDDFLAGS
>**************************************************************************************
>
>
>
>
>

-- 
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,  	75124 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the gromacs.org_gmx-developers mailing list