[gmx-users] index.c compilation error in GROMACS3.2
Simon Wang
sim_wang03 at hotmail.com
Mon Feb 16 05:11:02 CET 2004
Hi, GMX users:
I met the same problem to compile GROMACS3.2 on a SGI IRIX64 IP27 machine.
It stops at the make of index.c. I changed "const char" to "char" as Erik
suggested. The error messages are the following:
cc-1028 cc: ERROR File = index.c, Line = 263
The expression used must have a constant value.
char **chains[] = { NULL,pnoh,calpha,bb,mc,mcb,mch,mch,mch,pnodum };
......
9 errors detected in the compilation of "index.c".
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
>Hi,
>
>Those initializers are constant, so I guess the compiler is unhappy about
>the initialization..
>
>Try to put parentheses around (const char) or (const char *) - if that
>doesn't work, try changing "const char" to "char".
>
>Let me know the result if you want the fix to make it into 3.2.1 :-)
>
>Cheers,
>
>Erik
>
>On Feb 5, 2004, at 2:18 PM, Erik Wensink wrote:
>
>>hello gmx-users,
>>using gmx3.2 on a sgi with irix 6.5
>>with and without mpi (using setenv LIBS -lmpi)
>>I get the tail of make log as below. how best to get rid of
>>these?
>>mvh
>>Erik
>>
>>cc-1028 cc: ERROR File = index.c, Line = 263
>>The expression used must have a constant value.
>>
>> const char **chains[] = { NULL,pnoh,calpha,bb,mc,mcb,mch,mch,mch,pnodum
>>};
>> ^
>>
>>cc-1028 cc: ERROR File = index.c, Line = 263
>>The expression used must have a constant value.
>>
>> const char **chains[] = { NULL,pnoh,calpha,bb,mc,mcb,mch,mch,mch,pnodum
>>};
>> ^
_________________________________________________________________
Create your own personal Web page with the info you use most, at My MSN.
http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
More information about the gromacs.org_gmx-users
mailing list