delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/03/11/10:30:31

Date: Thu, 11 Mar 93 10:13:43 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: russ AT pta DOT pyramid DOT com DOT au
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: C compiles, C++ doesnt

>However, when I try to compile a small c++ program, this happens:
>
>Bad command or file name
>Can't open c:/tmp/cc000088.s for readingfile not found.
>c:/lang/cpp/lib/crt0.o: Undefined symbol _main referenced from text
>segment

Sounds like you are missing part of the package.  I don't use c++, myself, but
I think it has a separate .exe file.  If you add the -v (verbose) option to
the gcc command, it will probably show you what is triggering the "Bad command
or file name" message.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019