Message-Id: <199811261044.KAA12720@indus.hclt.com> From: "Sivananda Ramnath" Organization: HCL-Technologies To: djgpp AT delorie DOT com Date: Thu, 26 Nov 1998 16:11:35 +0530 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: (Sniff), help! In-reply-to: <73g80s$12k$1@oak.prod.itd.earthlink.net> X-mailer: Pegasus Mail for Win32 (v3.01b) Reply-To: djgpp AT delorie DOT com Hello, > You need to give moo a value, otherwise you're adding something to a > ariable which doesn't have a value, and hence you're getting an error > becuase you're variable is declared but not defined. No, moo is very much defined correctly. Defenition is NOT deferred until usage of the variable. Perhaps there is an extern decalaration for moo as something else in on of the header files you are including ? Could you post the exact message you got ? > > Jeff Johnson wrote in message > <3 DOT 0 DOT 6 DOT 32 DOT 19981124194909 DOT 007a21d0 AT tenforward DOT com>... > >(sniff)..i cant stand it!...this is driving me crazy!.. > > > >i made a prog. when i compiled it it said i was "redefining" every > >variable whenever i used it, ex: > > > >#include > >#include > >int main() > >{ > >blah blah blah > >int moo; > >int cow = 6; > >moo = (moo + cow) //Redefinition Error Here > >} > >Now, This isn't the exact program.. the real thing is 700+ lines, so > >someone help me out B4 I go crazy, crazy? I was Crazy Once, They locked > >me in a room with rats, rats? rats drive me crazy, crazy? i was crazy > >once, they locked me in a room with rats, rats? rats drive me crazy, > >crazy? i was crazy once, they locked me in a room with rats, rats? rats > >drive me crazy, crazy? i was crazy once............... > > Sivanand (siva AT hclt DOT com)