declaring variable
    Kevin_P_McCarty at cup.portal.com 
    Kevin_P_McCarty at cup.portal.com
       
    Mon Apr 10 18:21:41 AEST 1989
    
    
  
--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
    
    
More information about the Comp.lang.c
mailing list