Thread View: comp.os.os2.programmer.misc
5 messages
5 total messages
Started by Martin & Alethea
Wed, 11 Mar 1998 00:00
v_clear sample code anyone? None in docs for gcc/emx
Author: Martin & Alethea
Date: Wed, 11 Mar 1998 00:00
Date: Wed, 11 Mar 1998 00:00
20 lines
1183 bytes
1183 bytes
Using gcc 2.7.2 under emx in os/2 I'm a novice still so no graphics involved I just have a text mode program where I want to clear the screen. From the docs I assume v_clear() is the function I need. I've included <sys/video.h> and called the function: v_clear(); but the compiler doesn't recognise it as a function (undefined symbol referenced from text segment). There don't seem to be any examples in the sample code or docs. TIA _____________________ Martin , Cornwall UK Warped through and through
Re: v_clear sample code anyone? None in docs for gcc/emx
Author: Robert S Smith
Date: Wed, 11 Mar 1998 00:00
Date: Wed, 11 Mar 1998 00:00
32 lines
1546 bytes
1546 bytes
Martin & Alethea wrote: > > Using gcc 2.7.2 under emx in os/2 > > I'm a novice still so no graphics involved I just have a text mode > program where I want to clear the screen. From the docs I assume > v_clear() is the function I need. I've included <sys/video.h> and > called the function: > > v_clear(); > > but the compiler doesn't recognise it as a function (undefined symbol > referenced from text segment). > There don't seem to be any examples in the sample code or docs. > > TIA > > _____________________ > Martin , Cornwall UK > > Warped through and through Are you sure its the compiler and not the linker? It sounds like you just need to include the correct library when you link, and that should take care of it. Unfortunately, I have no idea which one it would be. Hope that helps Rob Smith rss@nbt.com
Re: v_clear sample code anyone? None in docs for gcc/emx
Author: James Youngman
Date: Thu, 12 Mar 1998 00:00
Date: Thu, 12 Mar 1998 00:00
10 lines
878 bytes
878 bytes
>>>>> "Martin" == Martin & Alethea <tes01_nospam_@globalnet.co.uk> writes: Martin> v_clear(); Martin> but the compiler doesn't recognise it as a function Martin> (undefined symbol referenced from text segment). Please read the FAQ for "comp.lang.c".
Re: v_clear sample code anyone? None in docs for gcc/emx
Author: Mikael St�ldal
Date: Thu, 12 Mar 1998 00:00
Date: Thu, 12 Mar 1998 00:00
21 lines
1412 bytes
1412 bytes
In article <voFHBstkGWlw-pn2-FLpwxF4ppdmw@localhost>, tes01_nospam_@globalnet.co.uk (Martin & Alethea) wrote: >v_clear(); > >but the compiler doesn't recognise it as a function (undefined symbol >referenced from text segment). Try to link with the "video" library, -lvideo. Tip: to find out in which library a particular function resides in, use: grep -l "the_funcion" \emx\lib\*.a -- /****************************************************************\ * You have just read a message from Mikael St�ldal. * * * * Remove "-ingen-reklam" from the address before mail replying. * \****************************************************************/
Re: v_clear sample code anyone? None in docs for gcc/emx
Author: Cindy Ross
Date: Mon, 16 Mar 1998 00:00
Date: Mon, 16 Mar 1998 00:00
18 lines
1241 bytes
1241 bytes
In <voFHBstkGWlw-pn2-FLpwxF4ppdmw@localhost>, tes01_nospam_@globalnet.co.uk (Martin & Alethea) writes:
>Using gcc 2.7.2 under emx in os/2
>
>I'm a novice still so no graphics involved I just have a text mode
>program where I want to clear the screen. From the docs I assume
<clip>
A simple (but not the most efficient) way to clear the screen is:
#include <stdlib.h>
..
system("cls");
-------------------------------------------------------------
Cindy Ross rossc@us.ibm.com
(These opinions are just mine, I only represent myself, etc.)
-------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads