Post by n***@nrjbasic.xx.ukOn Wed, 17 Feb 2016 14:45:52 +0100
Post by gamoDoes not compile in Linux.
Did you follow the instructions in the README and uncomment the correct
line in the Makefile for linux?
:~/src/BASIC/basic/src$ make
echo "#define BUILD_DATE \"`date +'%Y-%m-%d %T %Z'`\"" > build_date.h
cc -D CRYPT_HDR -Wall -pedantic -c -g main.c
main.c: In function ‘init’:
main.c:163:24: warning: argument to ‘sizeof’ in ‘bzero’ call is the same
expression as the destination; did you mean to dereference it?
[-Wsizeof-pointer-memaccess]
bzero(keyb_line,sizeof(keyb_line));
^
cc -D CRYPT_HDR -Wall -pedantic -c -g keyboard.c
cc -D CRYPT_HDR -Wall -pedantic -c -g tokeniser.c
cc -D CRYPT_HDR -Wall -pedantic -c -g execute.c
cc -D CRYPT_HDR -Wall -pedantic -c -g commands.c
cc -D CRYPT_HDR -Wall -pedantic -c -g functions.c
cc -D CRYPT_HDR -Wall -pedantic -c -g variables.c
cc -D CRYPT_HDR -Wall -pedantic -c -g expressions.c
cc -D CRYPT_HDR -Wall -pedantic -c -g defexp.c
cc -D CRYPT_HDR -Wall -pedantic -c -g values.c
values.c: In function ‘initMemValue’:
values.c:27:27: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
if ((val->shmid = shmget((key_t)val,size+1,IPC_CREAT | 0666)) < 0)
^
cc -D CRYPT_HDR -Wall -pedantic -c -g program.c
cc -D CRYPT_HDR -Wall -pedantic -c -g disk.c
cc -D CRYPT_HDR -Wall -pedantic -c -g draw.c
cc -D CRYPT_HDR -Wall -pedantic -c -g misc.c
cc -D CRYPT_HDR -lm -lcrypt main.o keyboard.o tokeniser.o execute.o
commands.o functions.o variables.o expressions.o defexp.o values.o
program.o disk.o draw.o misc.o -o basic
functions.o: En la función `funcRound':
/home/jesus/src/BASIC/basic/src/functions.c:173: referencia a `round'
sin definir
functions.o: En la función `funcFloor':
/home/jesus/src/BASIC/basic/src/functions.c:182: referencia a `floor'
sin definir
functions.o: En la función `funcCeil':
/home/jesus/src/BASIC/basic/src/functions.c:191: referencia a `ceil' sin
definir
functions.o: En la función `funcSqrt':
/home/jesus/src/BASIC/basic/src/functions.c:200: referencia a `sqrt' sin
definir
functions.o: En la función `funcPow':
/home/jesus/src/BASIC/basic/src/functions.c:209: referencia a `pow' sin
definir
functions.o: En la función `funcTrig1':
/home/jesus/src/BASIC/basic/src/functions.c:225: referencia a `sin' sin
definir
/home/jesus/src/BASIC/basic/src/functions.c:226: referencia a `cos' sin
definir
/home/jesus/src/BASIC/basic/src/functions.c:227: referencia a `tan' sin
definir
functions.o: En la función `funcTrig2':
/home/jesus/src/BASIC/basic/src/functions.c:247: referencia a `asin' sin
definir
/home/jesus/src/BASIC/basic/src/functions.c:253: referencia a `acos' sin
definir
/home/jesus/src/BASIC/basic/src/functions.c:257: referencia a `atan' sin
definir
functions.o: En la función `funcLog':
/home/jesus/src/BASIC/basic/src/functions.c:281: referencia a `log2' sin
definir
/home/jesus/src/BASIC/basic/src/functions.c:286: referencia a `log10'
sin definir
/home/jesus/src/BASIC/basic/src/functions.c:290: referencia a `log' sin
definir
functions.o: En la función `funcHypot':
/home/jesus/src/BASIC/basic/src/functions.c:305: referencia a `hypot'
sin definir
functions.o: En la función `funcCrypt':
/home/jesus/src/BASIC/basic/src/functions.c:1947: referencia a `crypt'
sin definir
draw.o: En la función `drawCircle':
/home/jesus/src/BASIC/basic/src/draw.c:135: referencia a `sin' sin definir
/home/jesus/src/BASIC/basic/src/draw.c:136: referencia a `cos' sin definir
collect2: error: ld returned 1 exit status
make: *** [basic] Error 1
--
http://gamo.eu.pn/
The generation of random numbers is too important to be left to chance