delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/23/23:47:16

From: kdawghu AT hotmail DOT com (Kris Mills)
Newsgroups: comp.os.msdos.djgpp
Subject: Question about DJGPP and GXX and GCC
Date: Sat, 24 Jan 98 04:43:23 GMT
Organization: VisiNet InterNetNews site
Lines: 39
Message-ID: <6abraq$e5$1@madrid.visi.net>
NNTP-Posting-Host: ppp-5-16.nn.visi.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I want to compile c++ code with djgpp i have been useing GXX because GCC won't 
compile any thing i do in C++. I thought that GCC  would allow you to compile 
c++ code also. Also when i type GCC at the dos it says no input file that's 
COOL ! but when i type GXX it says

e:/djgpp/lib\crt0.o(.data+0x92):crt0.s: undefined reference to `main'
e:/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c: undefined reference to `main'

is there some thing wrong with my setup up 

Also it won't let me pass string types to the system function that is char *

like

#Include <iostream.h>
#Include <string.h>
#include <stdlib.h>

main()

{
string text;
cin >> text;
system (text);
}


Please help Me! thanks

Kevin Fowlks
kdawghu AT hotmail DOT com








- Raw text -


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