Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ra!it1 From: it1@ra.MsState.Edu (Tim Tsai) Newsgroups: comp.os.msdos.programmer Subject: Turbo C (++) help Message-ID: Date: 6 Feb 91 09:45:40 GMT Lines: 40 Is Turbo C++ (more accurately, the Turbo C compiler included with Turbo C++) handling varargs differently than the previous versions?? I'm trying to compile a program that looks something like this: common.h: #ifdef PROTO #define ARGS (a) a #else #define ARGS (a) () #endif program.c: (PROTO defined) #include "common.h" void error ARGS ( (int kind, ...) ); void error (kind, format) int kind; char *format; { code that uses stdarg here. } When I try to compile program.c using tcc, it chokes at the line: int kind; with the error "redeclaration of error at line ##". Any ideas? PS: No, I don't have a manual. We have a site license, and the only time I use it is to compile programs other people wrote. PSS: The program supposedly compiles on previous versions of Turbo C. Thanks very much in advance.. -- Now I lay me down to rest, a pile of books upon my chest. If I should die before I wake, that's one less test I'll have to take.