Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!newcastle.ac.uk!colman!q143u From: J.D.Coleman@newcastle.ac.uk (Julian Coleman) Newsgroups: comp.binaries.ibm.pc.d Subject: Problems using gcc ( dj1bin ) to compile c++ Summary: Can't compile simple c++ program Keywords: gcc g++ C c++ dj1bin Message-ID: <1991Feb27.145341.18701@newcastle.ac.uk> Date: 27 Feb 91 14:53:41 GMT Sender: J.D.Coleman@newcastle.ac.uk Reply-To: J.D.Coleman@newcastle.ac.uk Followup-To: comp.binaries.ibm.pc.d Organization: Department of Surveying, University of Newcastle upon Tyne, UK. Lines: 44 We are having problems getting gcc to compile a simple c++ program. This is the program : ----------------------------------------------------------------------- // File hello.c #include main () { cout << "hello world"; } ----------------------------------------------------------------------- This is the compile sequence for this program : ----------------------------------------------------------------------- C:\C\SOURCE\GCC\TEST>gcc -v -o hello hello.c gcc version 1.37.1 cpp -v -undef -D__GNUC__ -Dunix -Di386 -D__unix__ -D__i386__ hello.c c:/pdsoft/ gcpp/tmp/ccAA_AAA.cpp GNU CPP version 1.37.1 c:/pdsoft/gcpp/inc/_File.h:50: unterminated string or character constant c:/pdsoft/gcpp/inc/_File.h:51: unterminated string or character constant c:/pdsoft/gcpp/inc/_File.h:52: unterminated string or character constant c:/pdsoft/gcpp/inc/streambuf.h:97: unterminated string or character constant ----------------------------------------------------------------------- What is wrong ? Thanks for any pointers, Julian +---------------------------+------------------------------------------+ | Julian Coleman | J.D.Coleman@newcastle.ac.uk | +---------------------------+------------------------------------------+ | Department of Surveying, University of Newcastle upon Tyne | | Newcastle upon Tyne, NE1 7RU, England. +44 91 222 6739 | +----------------------------------------------------------------------+ | "Is it safe?" | | "Oh yes, *it's* perfectly safe, it's just *us* who are in trouble!" | | Hitch Hikers' Guide To The Galaxy - Douglas Adams | +----------------------------------------------------------------------+