delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/12/04:01:24

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 <ams AT speedy DOT ludd DOT ltu DOT se>
Subject: Re: include conio and math
Newsgroups: comp.os.msdos.djgpp
References: <ck0tig$7u3$1 AT yggdrasil DOT glocalnet DOT net>
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 <wga955m AT tninet DOT se> 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 <iostream>

> using namespace std;

> #include <conio>
> #include <iomanip>
> #include <math>


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019