delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3839 |
Path: | news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!newsfeed.internetmci.com!news.sprintlink.net!micro.internexus.net!micro.internexus.net!master |
From: | master AT micro DOT internexus DOT net (Laszlo Vecsey) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | C++ - Almost there |
Date: | 12 Dec 1995 04:30:46 GMT |
Organization: | The Internet Nexus |
Lines: | 20 |
Message-ID: | <4aj0hm$g70@micro.internexus.net> |
NNTP-Posting-Host: | micro.internexus.net |
To: | djgpp |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Using 'cpp.exe hello.cpp -o hello.exe' it now compiles cleanly, but I guess I still need to link in some libs before this is truely an exe. How do I do this? Running 'gcc hello.cpp -o hello.exe' spits back errors about cout being undefined. hello.cpp simply contains an include of #iostream.h and a cout of "Hello World". stdio.h and printf (ANSI C) work just fine, but DJGPP is useless to me unless I can use C++. Thanks -- /--------------------------------------------------------/-\ | The Internet Nexus - http://www.internexus.net/~master/ | | finger master AT internexus DOT net | pgp -fka / \ \ / | | --> Master? Master Lester? Master of what!? <-- / / -| \__/-----------------------------------------------------\-/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |