[gmx-developers] previous declaration of loop

Mehmet Suezen suzen at theochem.tu-muenchen.de
Tue Mar 12 14:13:34 CET 2002


Dear Gromacs Developers,

What it seems strange for me, when I define an interaction loop
in src/gmxlib/inner.h  as

void FUNC(inl0500,INL0500)(COMMON_ARGS INVSQRT_S_BUF1 INVSQRT_S_BUF2
POT_ARGS );

and then in src/gmxlib/fnbf.c        

  case eNR_INL0500:
   FUNC(inl0500,INL0500)(COMMON_ARGS INVSQRT_S_BUF1 INVSQRT_S_BUF2
POT_ARGS);
  break;

As present for other loops, but my case gave a compilation error

innerc.c:2692: conflicting types for `inl0500'
inner.h:159: previous declaration of `inl0500'

I couldn't figure out why it gaves previous declaration error, Because
I've checked already
several time, there is no other decleration of inl0500.  Even types
declererd in inner.h
has used consistently.

Interesting thing is if I comment in new FUNC in src/gmxlib/inner.h.
Compilation is 
successful.

Surely I missed a lot above, more hacking needed probably.
Any comment or small hints would be helpful indeed. Or you might say
happy hacking.

Cheerz,
Mehmet



More information about the gromacs.org_gmx-developers mailing list