FAQ
0. Are pevious exam sheets w/wo sample solutions available?
Yes. For example, sample solutions for
exam 02/12/96. In general, Omega Staencilkomitte prints an
updated collection before each exam period.
1. "X Error of failed request: BadAlloc..." when running
xshow. Why?
I know the problem, it comes up in signy-salen on the Silicon Graphics
machines. I suspect there is something about the X server on the SG's
but I have no solution. Xshow runs well on Suns (idi), Ultrix (lise)
and Linux (in my home) machines.
If somebody comes around the problem please let me know.
2. Why do I get errors when sourcing the scripts xite_cshrc and
xite_login?
These scripts were written for tcsh, while at stud the default shell is
bash. To solve the problem, either get your login shell changed to
tcsh, or if you prefer keeping bash, just run tcsh before sourcing the
scripts and starting xshow (or other xite progs).
If somebody was willing to rewrite the scripts for bash, contact me
(not so much work).
3. Why do I get 'Unknown user:' error when trying to source
xite_cshrc or xite_login?
On stud and the idi systems xite is located in different places. If
you work at stud (signy, lise), you find xite at ~adm45032/xite. On
the idi system it is located at ~bilde/xite.
3. How to compile an program which used XITE library under UNIX/Linux?
You have to use cxite instead of gcc or CC. Why, because this program
makes all the link automatically for you. You do not need to include the
libray when make create the executable.
3. Why the compiler cannot find the include file when I am compiling under UNIX/Linux?
It can happen that the include are not referenced in the general path of the
compiler. So, the simplest way to resolve this problem is to create a link in
your home directory or the directory you have your working files. This link
should be named cxite and it should link the include directory of XITE
(usually they are in $XITE_HOME/include).
The command is like this:
ln -s $XITE_HOME/include xite
when you compile your program you should now include this line at the command
line:
cxite prog1... -I./xite
(this example supposes that the link xite is in
the current directory, you can put it elswhere, but put the right path after
the -I)
Gerthory Toussaint (toussain@idi.ntnu.no)