[gmx-users] Compilation problems for 3.2.1
Ross Nobes
r.nobes at fle.fujitsu.com
Tue Mar 2 13:32:01 CET 2004
Thanks Erik. The changes required to get src/tools/make_edi.c to compile on
machines that are strict about initialization are:
Add 'static' to declaration of edi_params
451 static t_edpar edi_params; /*save all the params in this struct
and then save it in an edi file.
Use explicit strings as you suggested:
467 { "-mon", FALSE, etSTR, {&evSelections[evMON]},
469 { "-linfix", FALSE, etSTR, {&evSelections[evLINFIX]},
471 { "-linacc", FALSE, etSTR, {&evSelections[evLINACC]},
473 { "-radfix", FALSE, etSTR, {&evSelections[evRADFIX]},
475 { "-radacc", FALSE, etSTR, {&evSelections[evRADACC]},
477 { "-radcon", FALSE, etSTR, {&evSelections[evRADCON]},
487 { "-linstep", FALSE, etSTR, {&evParams[evLINFIX]},
489 { "-accdir", FALSE, etSTR, {&evParams[evLINACC]},
491 { "-radstep", FALSE, etREAL, {&radfix},
Cheers,
Ross
> -----Original Message-----
> From: Erik Lindahl [mailto:lindahl at csb.stanford.edu]
> Sent: 02 March 2004 11:40
> To: gmx-users at gromacs.org
> Subject: Re: [gmx-users] Compilation problems for 3.2.1
>
> Hi Ross,
> >
> > This can be fixed by adding the 'static' attribute to bOne:
> >
> > 395 static bool bOne = TRUE;
> >
> > Is this a reasonable fix please?
>
> Oops. We must have missed that one when fixing all the others - yes,
> that's the way it should be.
>
> > ---
> > PROBLEM 2:
> > make_edi.c:467: initializer element is not computable at load time
> > make_edi.c:467: (near initialization for `pa[0].option')
> > make_edi.c:468: initializer element is not computable at load time
> > make_edi.c:468: (near initialization for `pa[0]')
> > make_edi.c:469: initializer element is not computable at load time
> > make_edi.c:469: (near initialization for `pa[1].option')
> > make_edi.c:470: initializer element is not computable at load time
> > make_edi.c:470: (near initialization for `pa[1]')
> > ...
> > make_edi.c:491: initializer element is not computable at load time
> > make_edi.c:491: (near initialization for `pa[12].option')
> > make_edi.c:492: initializer element is not computable at load time
> > make_edi.c:492: (near initialization for `pa[12]')
> >
> > This problem is (for someone with my knowledge of C at least) a bit
> > more
> > complicated! Can anyone suggest a fix for this please?
> >
>
> Ah, make_edi is a new program contributed by Oliver Lange and Bert de
> Groot. The options seem to be static, but they use indices in arrays
> instead of specifying some strings explicitly.
>
> Try replacing them with the values above, i.e. for line 467:
>
> { "-mon", FALSE, etSTR, {NULL},
>
>
> etc., and let me know if that works.
>
> Cheers,
>
> Erik
>
> _______________________________________________
> gmx-users mailing list
> gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-users-request at gromacs.org.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20040302/bc184c6b/attachment.txt>
More information about the gromacs.org_gmx-users
mailing list