Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!portal!cup.portal.com!Kevin_P_McCarty From: Kevin_P_McCarty@cup.portal.com Newsgroups: comp.lang.c Subject: Re: declaring variable Message-ID: <16969@cup.portal.com> Date: 10 Apr 89 08:21:41 GMT References: <2585@ssc-vax.UUCP> Distribution: na Organization: The Portal System (TM) Lines: 42 --test1.c---------- double A, B, fooY, fooX, whelp; WhatAmI, AndMoreVariables; main() { } --test2.c---------- main() { double A, B, fooY, fooX, whelp; WhatAmI, AndMoreVariables; } tcc -c -A test1 Turbo C Version 2.0 Copyright (c) 1987, 1988 Borland International test1.c: Error test1.c 6: Declaration needs type or storage class Warning test1.c 10: Function should return a value in function main *** 1 errors in Compile *** tcc -c -A test2 Turbo C Version 2.0 Copyright (c) 1987, 1988 Borland International test2.c: Error test2.c 8: Undefined symbol 'WhatAmI' in function main Error test2.c 9: Undefined symbol 'AndMoreVariables' in function main Warning test2.c 8: Code has no effect in function main Warning test2.c 9: Code has no effect in function main *** 2 errors in Compile *** No, Turbo-C 2.0 isn't broken, something else is. Is WhatAmI a C keyword, perhaps? Grep will help you find out if it's been defined or declared elsewhere. Kevin McCarty