Article View: gnu.gcc.help
Article #51375Help in compiling C++ program on gcc on dos
From: steven kok-hsien siew
Date: Wed, 26 May 1993 13:10
Date: Wed, 26 May 1993 13:10
50 lines
2080 bytes
2080 bytes
Help. I have trouble compiling a C++ program on gcc on my dos machine.
Iam using gcc ver 2.2 which I obtain from simtel. Here is my problem.
C:\DJGPP\FILE>type hello.cc
/* // Borland C++ - (C) Copyright 1991, 1992 by Borland International
*/
/* HELLO.C -- Hello, world */
#include <stdio.h>
int main()
{
printf("Hello, world\n");
return 0;
}
C:\DJGPP\FILE>gcc hello.cc
Command or filename not recognized
Can't open c:/tmp/cc001537.s for readingfile not found.
c:/djgpp/lib/crt0.o: Undefined symbol _main referenced from text
segment
C:\DJGPP\FILE>type hello.cc
/* // Borland C++ - (C) Copyright 1991, 1992 by Borland International
*/
/* HELLO.C -- Hello, world */
#include <stdio.h>
int main()
{
printf("Hello, world\n");
return 0;
}
C:\DJGPP\FILE>gcc hello.cc
Command or filename not recognized
Can't open c:/tmp/cc001537.s for readingfile not found.
c:/djgpp/lib/crt0.o: Undefined symbol _main referenced from text
segment
Could anyone help me? Thanks in advance.
-----------------------------------------------------------------------------
The only people who believe that unlimited | Steven Siew tel 03 803 4662
growth can take place in a finite system | ksiew@mullian.ee.mu.oz.au
are madmen or economists. Spaceship earth: | Don't call me! Gundam me!
-----------------------------------------------------------------------------
Technical Details
Message-ID:
<ksiew.738421840@mullian.ee.Mu.OZ.AU>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!munnari.oz.au!cs.mu.OZ.AU!ksiewShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,20d368dd1aa3de0c,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-26 06:23:27 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!munnari.oz.au!cs.mu.OZ.AU!ksiew From: ksiew@ee.mu.OZ.AU (steven kok-hsien siew) Subject: Help in compiling C++ program on gcc on dos Message-ID: <ksiew.738421840@mullian.ee.Mu.OZ.AU> Keywords: dos Sender: news@cs.mu.OZ.AU Organization: Computer Science, University of Melbourne, Australia Date: Wed, 26 May 1993 13:10:40 GMT Lines: 50