X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "readmylips AT my-deja DOT com" Newsgroups: comp.os.msdos.djgpp Subject: Re: Mystified by compiling Date: 6 Jul 2006 13:58:08 -0700 Organization: http://groups.google.com Lines: 19 Message-ID: <1152219488.896286.57690@s26g2000cwa.googlegroups.com> References: <1152209580 DOT 035172 DOT 149660 AT s26g2000cwa DOT googlegroups DOT com> <200607061820 DOT k66IKNhu031068 AT envy DOT delorie DOT com> NNTP-Posting-Host: 69.156.157.254 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1152219494 30514 127.0.0.1 (6 Jul 2006 20:58:14 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 6 Jul 2006 20:58:14 +0000 (UTC) In-Reply-To: <200607061820.k66IKNhu031068@envy.delorie.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: s26g2000cwa.googlegroups.com; posting-host=69.156.157.254; posting-account=v1V9BgwAAADSQrdMvst5kTuJz8z_xx3f To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk DJ Delorie wrote: > > This is the error it gives me: > > randgen.cpp: In function 'int main(int, char**)': > > randgen.cpp:1166: error: 'getcwd' was not declared in this scope > > randgen.cpp:1168: error: 'chdir' was not declared in this scope > > > So is this a bug in their code or a error in my use or configuration of > > the compiler? > > It's a bug in their code. You need to add this line near > the top of the file: > > #include > > Also, you may want to use gpp or g++ instead of gcc, so that all the > C++ libraries are linked in. Thank you very much! It worked like a charm!