Thread: [Dev-C++] problem with conio.h
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: faramarz y. <far...@ho...> - 2004-04-17 19:31:09
|
simply writing this :
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
clrscr();
gotoxy(10,10);
system("PAUSE");
return 0;
}
there is no compiler error but linker made this errors :
:conio.cpp: undefined reference to `clrscr'
conio.cpp: undefined reference to `gotoxy'
i have this problem only with conio.h.
i check conio.h & find the prototype of these functions in cinio is
availble.
what should i do to solve it?
thank u in advanced
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|
|
From: <i1...@ya...> - 2004-04-18 05:41:04
|
You can use system("CLS");
or declare the function:
void clrscr(){
system("CLS");
}
faramarz yari <far...@ho...> wrote:simply writing this :
#include
#include
#include
int main(int argc, char *argv[])
{
clrscr();
gotoxy(10,10);
system("PAUSE");
return 0;
}
there is no compiler error but linker made this errors :
:conio.cpp: undefined reference to `clrscr'
conio.cpp: undefined reference to `gotoxy'
i have this problem only with conio.h.
i check conio.h & find the prototype of these functions in cinio is
availble.
what should i do to solve it?
thank u in advanced
---------------------------------
Yahoo! Messenger - Fale com seus amigos online. Instale agora! |
|
From: Mohammed I. <mi...@ac...> - 2004-04-18 14:14:24
|
If you want your program to run, compile it with Borland C++ compilers.
There're no libraries with gcc to link to conio.h.
Mohamed
----- Original Message -----
From: "faramarz yari" <far...@ho...>
To: <Dev...@li...>
Sent: Saturday, April 17, 2004 9:30 PM
Subject: [Dev-C++] problem with conio.h
> simply writing this :
>
> #include <stdio.h>
> #include <conio.h>
> #include <stdlib.h>
> int main(int argc, char *argv[])
> {
> clrscr();
> gotoxy(10,10);
> system("PAUSE");
> return 0;
> }
>
> there is no compiler error but linker made this errors :
>
> :conio.cpp: undefined reference to `clrscr'
> conio.cpp: undefined reference to `gotoxy'
>
> i have this problem only with conio.h.
> i check conio.h & find the prototype of these functions in cinio is
> availble.
> what should i do to solve it?
> thank u in advanced
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Per W. <pw...@ia...> - 2004-04-18 18:14:09
|
Don't know if it is distributed now, but at least there have been a
conio.h/conio.c available
The conio.c does contain
clrscr(), clreol(), delline(), _conio_gettext(),
gotoxy(), puttext(), _setcursortype(), textattr(),
textbackground(), textcolor(), wherex(), wherey()
/Per W
On Sun, 18 Apr 2004, Mohammed Iqbal wrote:
> If you want your program to run, compile it with Borland C++ compilers.
> There're no libraries with gcc to link to conio.h.
>
> Mohamed
> ----- Original Message -----
> From: "faramarz yari" <far...@ho...>
> To: <Dev...@li...>
> Sent: Saturday, April 17, 2004 9:30 PM
> Subject: [Dev-C++] problem with conio.h
>
>
> > simply writing this :
> >
> > #include <stdio.h>
> > #include <conio.h>
> > #include <stdlib.h>
> > int main(int argc, char *argv[])
> > {
> > clrscr();
> > gotoxy(10,10);
> > system("PAUSE");
> > return 0;
> > }
> >
> > there is no compiler error but linker made this errors :
> >
> > :conio.cpp: undefined reference to `clrscr'
> > conio.cpp: undefined reference to `gotoxy'
> >
> > i have this problem only with conio.h.
> > i check conio.h & find the prototype of these functions in cinio is
> > availble.
> > what should i do to solve it?
> > thank u in advanced
> >
> > _________________________________________________________________
> > Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> > http://join.msn.com/?page=features/featuredemail
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <ce...@te...> - 2004-04-18 15:10:09
|
Try including libgdi32 and libconio.a if you have it (libconio.a is not in
all mingw releases, or search for conio.o, or I don't know).
P.S.- For using this kind of function for graphics in console mode is
winbgim.
On Sat, 17 Apr 2004 19:30:58 +0000, faramarz yari
<far...@ho...> wrote:
> simply writing this :
>
> #include <stdio.h>
> #include <conio.h>
> #include <stdlib.h>
> int main(int argc, char *argv[])
> {
> clrscr();
> gotoxy(10,10);
> system("PAUSE");
> return 0;
> }
>
> there is no compiler error but linker made this errors :
>
> :conio.cpp: undefined reference to `clrscr'
> conio.cpp: undefined reference to `gotoxy'
>
> i have this problem only with conio.h.
> i check conio.h & find the prototype of these functions in cinio is
> availble.
> what should i do to solve it?
> thank u in advanced
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|