Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!kunivv1!atcmpe!leo From: leo@atcmp.nl (Leo Willems) Newsgroups: comp.lang.c++ Subject: extern const definition Keywords: extern const Message-ID: <612@atcmpe.atcmp.nl> Date: 3 Jun 90 19:02:26 GMT Organization: AT Computing, Nijmegen, The Netherlands Lines: 24 This C++ code compiles under 1.2, 2.0 (both Glockenspiel) and Zortech (2.06): extern const int eof = -1; The C generating cfront compilers both emit multiple definitions for eof from which the c compiler gets a headache. Who is wrong? Is there a fix? Another, related question: Must ANSI C compilers accept this: int eof = -1; int eof = -1; Thanks. Leo Willems Internet: leo@atcmp.nl AT Computing UUCP: mcsun!hp4nl!kunivv1!atcmpe!leo P. O. Box 1428 6501 BK Nijmegen Phone: +31-80-566880 The Netherlands Fax: +31-80-555887