X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <416b8b66$0$173$cc7c7865@news.luth.se> From: Martin Str|mberg Subject: Re: include conio and math Newsgroups: comp.os.msdos.djgpp References: User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha)) Date: 12 Oct 2004 07:44:38 GMT Lines: 37 NNTP-Posting-Host: speedy.ludd.ltu.se X-Trace: 1097567078 news.luth.se 173 130.240.16.13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Per wrote: > However I tested with a new program and this time conio and math does not > work. > I am using version 3.42 and > C:\cbl\lab\nyalab>gpp -o i.exe i.cc > i.cc:8:17: conio: No such file or directory (ENOENT) > i.cc:10:16: math: No such file or directory (ENOENT) > i.cc: In function `int main()': > i.cc:20: error: `clrscr' undeclared (first use this function) > i.cc:20: error: (Each undeclared identifier is reported only once for each > funct > ion it appears in.) > i.cc:29: error: `getch' undeclared (first use this function) > i.cc: In function `void calculate(double)': > i.cc:65: error: `sqrt' undeclared (first use this function) > #include > using namespace std; > #include > #include > #include You'll have to: 1. Decide to use C or C++. 2. If you choose C++, you need to check how you interface with C functions from C++ (conio.h is C header). Right, MartinS