No IO Permission...

Search this archive.

From: Aurobrata Ghosh msc math (auro@iitk.ac.in)
Date: Tue 25 Sep 2001 - 19:28:53 IST


Hello there,
	I've found this promising lib, tucked away in the lib directory of my
school's network system (running red-hat linux), and have been itching
to use it.
	I wrote a simple prog. using <vga.h>. It compiled fine as per the
instructions in the tutorial at www.svgalib.org. I then ran 'chmod u+s'
on the out file. But still I get the message: 'svgalib: Cannot get I/O
permissions.' What am supposed to do?
	I wrote down the following bit of code:

	try1.cpp:
#include <iostream.h>
#include <vga.h>

int main()
{
  int p;
  p= vga_init();
  vga_setmode(TEXT);
  cout << p;

  return 0;
}

	compiled as:
$ g++ try1.cpp -o try1.x -lvga
	it compiled fine. Then I did:
$ chmod u+s try1.x
	all was fine. Next:
$ ./try1.x
	and the prompt returns:
svgalib: Cannot get I/O permissions.

	I've downloaded the source-code, and added ROOT_VC_SHORTCUT in the
'Makefile' (but there are so many, in each directory, in which one am I
supposed to add that? In the /svgalib-1.4.3/Makefile or
/svgalib-1.4.3/src/Makefile?. I've done it in the former.). However it
cannon compile the source, because I don't have root rights, and
therefore can't write to the /usr/lib directory.
	I'd very much be grateful, if you could help me out with this.
	Thank you...
	Yours Auro :)

------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST