delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/30/05:57:28

To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: JHORREL AT eleceng DOT uct DOT ac DOT za
Date: 30 Jul 93 11:18:52 SAST
Subject: C++ compilation

Being relatively new to the compiler and very new to the support
group, this may be a trivial question, but I'm stuck. I'm running the
GNUC compiler using DOS on a 486.

I have a little "hello world" type program which complies and runs
beautifully as a C program, but if I try to compile it as C++ code
(without even any C++ specific features) I get the following messages:

Bad command or file name
Can't open c:/djgpp/tmp/cc000058.s for readingfile not found
c:/djgpp/lib/crt0.o: Undefined symbol _main referenced from text
segment

My compilation line is : gcc prog.cxx -o prog.out

Any ideas?
Jasper.

#########################################################
# Jasper Horrell    # e-mail: jhorrel AT eleceng DOT uct DOT ac DOT za #
# Dept. of Eleceng. # phone : +27 21 650 3803           #
# UCT Private Bag   # fax : +27 21 650 3465             #
# Rondebosch 7700   #                                   #
# RSA               #                                   #
#########################################################

- Raw text -


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