Thread: [Dev-C++] clrscr() & gotoxy() - Question of a beginner
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Michel E. <er...@ci...> - 2003-11-04 15:22:59
|
Hi list ! I've got a little question and I hope that you can give a beginner (like = me) a helpin' hand :) It's about clrscr() and gotoxy(). I know that these are non-standard = functions but (as far as I know) useing the conio.h header, they should work. So my problem is, when I try to use clrscr() or gotoxy(), I always get = this error : " [Linker error] undefined reference to `gotoxy' " Yes, I #included conio :) Yes, everything else works. Yes, it's Dev-C++ 4.9.4.1 Yes, I know I am a beginner :-) Thanks ! Michel |
From: Tuukka L. <Tuu...@su...> - 2003-11-04 22:03:43
|
There is simple implementation Dev-cpp\include\conio.c I don't know why this isin't are in library form. If you need more advance console support you may consider pdcurses library http://pdcurses.sourceforge.net/ Don't use system() because it takes huge system resources for the little thing. |
From: Michel E. <er...@ci...> - 2003-11-05 12:14:12
|
Hi Tuukka ! #includeing "conio.c" was a good advice, 'cause gotoxy and clrscr() are working right now :) Thanks a lot ! Michel ----- Original Message ----- From: "Tuukka Lehtinen" <Tuu...@su...> To: <Dev...@li...> Sent: Tuesday, November 04, 2003 11:03 PM Subject: Re: [Dev-C++] clrscr() & gotoxy() - Question of a beginner > There is simple implementation Dev-cpp\include\conio.c > I don't know why this isin't are in library form. > > If you need more advance console support you may consider pdcurses > library http://pdcurses.sourceforge.net/ > > Don't use system() because it takes huge system resources for the little > thing. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > 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: Alvin T. <al...@th...> - 2003-11-05 22:23:38
|
not sure where that conio.c is coming from; it's not included in my minGW distro. there's a good chance it will go away. -alvin Tuukka Lehtinen wrote: > There is simple implementation Dev-cpp\include\conio.c > I don't know why this isin't are in library form. > > If you need more advance console support you may consider pdcurses > library http://pdcurses.sourceforge.net/ > > Don't use system() because it takes huge system resources for the little > thing. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > 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: Matthews <dem...@uw...> - 2003-11-05 22:57:48
|
Ok, this is a recurring topic on this list. Conio is a nonstandard c library, which for some reason was included in earlier MinGW distributions. Newer Dev-C++s don't come with it anymore, ( or at least the non-standard version), so I compiled my own version from the older conio.c file. Anyways, if you have the version that has textcolor(), etc, then you include "conio.h" and add "-lconio" to your linker options. At 11:14 AM 05/11/2003 -0500, Alvin Thompson wrote: >not sure where that conio.c is coming from; it's not included in my >minGW distro. there's a good chance it will go away. > >-alvin > > >Tuukka Lehtinen wrote: > >> There is simple implementation Dev-cpp\include\conio.c >> I don't know why this isin't are in library form. >> >> If you need more advance console support you may consider pdcurses >> library http://pdcurses.sourceforge.net/ >> >> Don't use system() because it takes huge system resources for the little >> thing. >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SF.net Giveback Program. >> Does SourceForge.net help you be more productive? Does it >> help you create better code? SHARE THE LOVE, and help us help >> YOU! Click Here: http://sourceforge.net/donate/ >> _______________________________________________ >> 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: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >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: Alvin T. <al...@th...> - 2003-11-06 15:53:43
|
isn't that what i just said? but if *you* say it, it must be true... :P -alvin Matthews wrote: > Ok, this is a recurring topic on this list. Conio is a nonstandard c > library, which for some reason was included in earlier MinGW distributions. > Newer Dev-C++s don't come with it anymore, ( or at least the non-standard > version), so I compiled my own version from the older conio.c file. > Anyways, if you have the version that has textcolor(), etc, then you > include "conio.h" and add "-lconio" to your linker options. > > At 11:14 AM 05/11/2003 -0500, Alvin Thompson wrote: > >>not sure where that conio.c is coming from; it's not included in my >>minGW distro. there's a good chance it will go away. >> >>-alvin >> >> >>Tuukka Lehtinen wrote: >> >> >>>There is simple implementation Dev-cpp\include\conio.c >>>I don't know why this isin't are in library form. >>> >>>If you need more advance console support you may consider pdcurses >>>library http://pdcurses.sourceforge.net/ >>> >>>Don't use system() because it takes huge system resources for the little >>>thing. >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: SF.net Giveback Program. >>>Does SourceForge.net help you be more productive? Does it >>>help you create better code? SHARE THE LOVE, and help us help >>>YOU! Click Here: http://sourceforge.net/donate/ >>>_______________________________________________ >>>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: SF.net Giveback Program. >>Does SourceForge.net help you be more productive? Does it >>help you create better code? SHARE THE LOVE, and help us help >>YOU! Click Here: http://sourceforge.net/donate/ >>_______________________________________________ >>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 >> |