Re: an_error



On 31 May 2007 06:05:47 -0700, strycnine.r@xxxxxxxxx
<strycnine.r@xxxxxxxxx> wrote:


I made a program but when I try to compile it gives me this:
$gcc -o main.c
$In file included from stiva.c:3,
from main.c:4:
stiva.h:7: error: redefinition of 'struct stiva'
stiva.h:12: error: redefinition of typedef 'Stiva'
stiva.h:12: error: previous declaration of 'Stiva' was here
stiva.h:12: error: redefinition of typedef 'STIVA'
stiva.h:12: error: previous declaration of 'STIVA' was here
$
this is stiva.h from were the error is
[code]
#define adevarat 1
#define fals 0
#define MAX 256


Do you #include stiva.h more than once?


--
A general leading the State Department resembles a dragon commanding ducks.
-- New York Times, Jan. 20, 1981
.



Relevant Pages

  • ruby-frontbase doesnt compile on Mac OS X version 10.5
    ... frontbase.c:27: error: redefinition of typedef 'FBCLob' ... frontbase.c:29: error: redefinition of typedef 'FBCColumn' ... declaration of 'FBCColumn' was here ...
    (comp.lang.ruby)
  • Re: RFT: ZFS MFC
    ... previous declaration of 'aclent_t' was here ... redefinition of 'struct ace' ... redefinition of typedef 'ace_t' ...
    (freebsd-stable)
  • Re: an_error
    ... stiva.h:12: error: redefinition of typedef 'Stiva' ... stiva.h:12: error: previous declaration of 'Stiva' was here ...
    (comp.os.linux.misc)
  • Re: an_error
    ... stiva.h:12: error: redefinition of typedef 'Stiva' ... stiva.h:12: error: previous declaration of 'Stiva' was here ...
    (comp.os.linux.misc)
  • Re: an_error
    ... stiva.h:12: error: redefinition of typedef 'Stiva' ... stiva.h:12: error: previous declaration of 'Stiva' was here ...
    (comp.os.linux.misc)