Xref: news-dnh.mv.net comp.os.msdos.djgpp:2427 Path: news-dnh.mv.net!mv!news.sprintlink.net!simtel!swidir.switch.ch!newsfeed.ACO.net!alijku06!news From: Roland Exler Newsgroups: comp.os.msdos.djgpp Subject: Re: can't compile c++ Date: 5 Oct 1995 13:18:30 GMT Organization: Institute for el. Measurement, University of Linz, Austria Lines: 24 References: 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 car AT wwa DOT com (Chris A. Rodgers) wrote: >Hi all! In short, I installed djgpp and it compiled hello.c from the >samples directory just fine, but when I try a simple c++ program, I get >the following error: .... >E:\DJGPP\SRC\cis_230\testbed1>gcc -v myfirst.cpp For C++ you've to link libgpp! Try gcc myfirst.cpp -lgpp this should work 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 +---------------------------------------+---------------------------+