Compilation and execution problem

Derick Wong (derickwong@hotmail.com)
Thu, 25 Mar 1999 16:13:01 MYT


Hi,

I'm a newbie to AfterStep. I encounter problems compiling the Script 
program in src/Script directory. The rest of the source compiles 
successfully. I attach the error messages below :

gcc -O2  -Wall  -I/usr/X11R6/include    -I. -c Instructions.c
Instructions.c: In function `FuncGetTitle':
Instructions.c:149: warning: implicit declaration of function `fprintf'
Instructions.c: In function `FuncGetASoption':
Instructions.c:175: warning: implicit declaration of function `printf'
Instructions.c:180: warning: implicit declaration of function `time'
Instructions.c:194: warning: implicit declaration of function `fread'
Instructions.c:195: warning: implicit declaration of function `pclose'
Instructions.c:240: warning: implicit declaration of function `sscanf'
Instructions.c:250: warning: implicit declaration of function `memmove'
Instructions.c: In function `FuncHexToNum':
Instructions.c:400: warning: implicit declaration of function `strtol'
Instructions.c: In function `RemainderOfDiv':
Instructions.c:466: `div_t' undeclared (first use this function)
Instructions.c:466: (Each undeclared identifier is reported only once
Instructions.c:466: for each function it appears in.)
Instructions.c:466: parse error before `res'
Instructions.c:477: `res' undeclared (first use this function)
Instructions.c:477: warning: implicit declaration of function `div'
Instructions.c:478: warning: int format, different type arg (arg 3)
Instructions.c: In function `Quit':
Instructions.c:1056: warning: implicit declaration of function `bzero'
Instructions.c:1058: warning: implicit declaration of function `select'
Instructions.c: In function `WriteToFile':
Instructions.c:1250: warning: implicit declaration of function `fseek'
Instructions.c:1284: warning: implicit declaration of function `fclose'
Instructions.c:1291: warning: implicit declaration of function `fwrite'
make: *** [Instructions.o] Error 1

I also face problem running AfterStep. Even though I changed the 
execution path from the default /usr/local/bin to $HOME/afterstep, the 
changes was not reflected when I execute AfterStep. It indicates the 
file /usr/local/share/afterstep/base.8bpp was not found.

I used "configure --prefix=$HOME/afterstep" to change the default 
execution path. When I checked the configure.h file, the new path is 
indicated there. Can someone show me where I went wrong?

FYI, I'm using AfterStep 1.6.10 with X11R6 on a SunOS 4.1.4 platform.

Thanks.
Get Your Private, Free Email at http://www.hotmail.com

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.caldera.com/linuxcenter/forums/afterstep.html