Xref: news-dnh.mv.net comp.os.msdos.djgpp:3496 Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!in1.uu.net!newsfeed.ACO.net!alijku06!news From: Roland Exler Newsgroups: comp.os.msdos.djgpp Subject: Re: C++ code under djgpp..... Date: 29 Nov 1995 07:32:17 GMT Organization: Institute for el. Measurement, University of Linz, Austria Lines: 25 References: <494jdf$alp AT news1 DOT inlink DOT com> Nntp-Posting-Host: sensor4.emt.uni-linz.ac.at To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp mlinvle AT inlink DOT com (mlinvle) wrote: >I'm trying to compile C++ code under djgpp, but get a number of errors that >seem to suggest that I should be writing C-style code. ... >I'm using cc1plus.exe to compile with...Should I be using this or cpp.exe? With djgpp you've to call gcc with your program, for example I use gcc -Wall -m486 -c myprog.cc which does an compilation of myprog.cc (output myprog.o) and gives most warnings possible (-Wall) and code for 486 (-m486). gcc calls the preprocessor, compiler, linker, ... depending on your command-line automatically for you. Hope this helps, Roland +---------------------------------------+---------------------------+ I Roland Exler I EMAIL: I I Universitaet Linz I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I I Institut fuer Elektrische Messtechnik I I I Altenbergerstr. 69 I Phone: I I A-4040 Linz, AUSTRIA I + 43 732 2468 9205 I +---------------------------------------+---------------------------+