X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "KnowItAll" Newsgroups: comp.os.msdos.djgpp Subject: Mystified by compiling Date: 6 Jul 2006 11:13:00 -0700 Organization: http://groups.google.com Lines: 20 Message-ID: <1152209580.035172.149660@s26g2000cwa.googlegroups.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 1152209586 21346 127.0.0.1 (6 Jul 2006 18:13:06 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 6 Jul 2006 18:13:06 +0000 (UTC) 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 Hi all. I'm not a programmer so pardon me for this query but I have this source code that I want to compile (randgen.cpp) as a MS-DOS program. I didn't write it. I just want to make a version that runs under true DOS (they only provide a Windows version which I don't want) for myself so I can play a game called VGA Planets with the assistance of this utility. So I downloaded and installed (easy BTW) the DJGPP compiler for DOS and went to compile the file as follows: C:>gcc randgen.cpp -o randgen.exe -lm 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?