From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: Question about DJGPP and GXX and GCC Date: Sat, 24 Jan 1998 12:05:45 +0100 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 31 Message-ID: <34C9CB09.83CA7EA0@LSTM.Ruhr-UNI-Bochum.De> References: <6abraq$e5$1 AT madrid DOT visi DOT net> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Kris Mills wrote: > > 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 * It would help somewhat if you named your source code something like foo.cc or foo.cpp. I guess you called if bar.c, so gcc tries to compile it as C, which usually fails. -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************