Empezando con z88dk

Programando el Amstrad en BASIC, C, etc.
Avatar de Usuario
Mode 2
I am The Forum
I am The Forum
Mensajes: 2072
Registrado: Lun 10 Oct , 2005 8:01 pm
Ubicación: Sevilla, años 80.
Contactar:

Re: Empezando con z88dk

Mensajepor Mode 2 » Mié 25 Abr , 2012 7:24 pm

Gracias, es que le veía poca lógica con esos tiles desperdigados sin sentido.;-)
BUSCO: VideoPac+, Jaguar Saturn, Micromanía 1, Amstrad Semanal, MicroHobby, juegos especialmente CPC y Vectrex, Aquarius, Sam Copé, 520 ST, manual +3, manual CPC664.

Avatar de Usuario
LexSparrow
Master of The Forum
Master of The Forum
Mensajes: 1009
Registrado: Dom 18 Dic , 2005 3:17 am
Contactar:

Re: Empezando con z88dk

Mensajepor LexSparrow » Sab 28 Abr , 2012 4:10 pm

La verdad es que está muy interesante esto del Z88dk
END OF LINE

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Mar 08 May , 2012 4:45 pm

Muy buenas!!

Otro que empieza con la programación con el z88dk.

Me he instalado el compilador en mi Linux y me he bajado la libreria cpcrslib. He empezado por lo "facil", que es compilar los ejemplos que vienen con la cpcrslib. He podido compilar el primer ejemplo y segundo sin problemas, pero no soy capaz de compilar mas, tengo errores de este tipo:

Código: Seleccionar todo

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
¿Cual puede ser el problema? ](*,)

Gracias!!

Avatar de Usuario
Artaburu
Trasteador
Trasteador
Mensajes: 8420
Registrado: Vie 07 Oct , 2005 6:18 pm
Ubicación: En tu pantalla

Re: Empezando con z88dk

Mensajepor Artaburu » Mié 09 May , 2012 12:59 pm

TIene pinta de que has pillado alguna librería que no corresponde a los ejemplos. Hay dos versiones, una con scroll y otra sin el. Prueba a bajarte las dos y cambiar el *.lib y el .h de cada una de ellas.
Si no das con ello lo miro a la noche y te cuento.
Salu2,
Arta

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Mié 09 May , 2012 7:49 pm

Gracias por tu respuesta Arta.

Lo que comentas ya lo había probado. Me he bajado ambas librerías, la de scroll y la de sin scroll. Los ejemplos son los que venian en el rar de la libería. :(

Avatar de Usuario
Artaburu
Trasteador
Trasteador
Mensajes: 8420
Registrado: Vie 07 Oct , 2005 6:18 pm
Ubicación: En tu pantalla

Re: Empezando con z88dk

Mensajepor Artaburu » Jue 10 May , 2012 10:26 am

Vale, lo voy a mirar... al final ayer me lié y no pude. No se si hoy podrá ser pero si no, seguro que el finde tienes respuesta ;)
¿No te compila ningún otro ejemplo más a partir de ese? ¿Usas el make.bat para compilarlo?
Salu2,
Arta

Avatar de Usuario
Artaburu
Trasteador
Trasteador
Mensajes: 8420
Registrado: Vie 07 Oct , 2005 6:18 pm
Ubicación: En tu pantalla

Re: Empezando con z88dk

Mensajepor Artaburu » Jue 10 May , 2012 11:31 am

He podido probarlo con lo que hay en:
http://cpcrslib.googlecode.com/files/cpcrslib111510.rar

Con lo de ese archivo compila sin problemas. ¿Puedes probar a ver? Yo lo hago en Windows pero no creo que en Linux tuviera que ir diferente.
Salu2,
Arta

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Jue 10 May , 2012 5:23 pm

Nada, yo no soy capaz. Me falla compilando el ejemplo 10.

He bajado nuevamente la librería que me has indicado y tengo este resultado. Es un poco largo, pero prefiero ponerlo todo:

Código: Seleccionar todo

[jose@trapallan 010 - Sprites]$ zcc +cpc -create-app -make-app -O3 -unsigned -o uno.bin code.c -lcpcrslib -lndos -zorg=16384
cp /usr/share/z88dk/lib/cpc_crt0.opt /tmp/tmpXXvv1cl0.opt
cp /tmp/tmpXXvv1cl0.opt /tmp/tmpXXvv1cl0.asm
zcpp -I. -DZ80 -DSMALL_C -DCPC -D__CPC__ -DSCCZ80 -I/usr/share/z88dk/include code.c /tmp/tmpXXVOvZUs.i
cpp: line 21, Warning: Illegal digit in octal number
defb $05,$09,$0A
sccz80 -make-app -unsigned -zorg=16384 /tmp/tmpXXVOvZUs.i
sccz80:"code.c" L:29 Warning:#36:In function: main() line 3
sccz80:"code.c" L:29 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:29 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:29 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:29 Warning:#36:In function: main() line 3
sccz80:"code.c" L:29 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:29 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:29 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:29 Warning:#36:In function: main() line 3
sccz80:"code.c" L:29 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:29 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:29 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:30 Warning:#36:In function: main() line 4
sccz80:"code.c" L:30 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:30 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:30 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:30 Warning:#36:In function: main() line 4
sccz80:"code.c" L:30 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:30 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:30 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:30 Warning:#36:In function: main() line 4
sccz80:"code.c" L:30 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:30 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:30 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:32 Warning:#36:In function: main() line 6
sccz80:"code.c" L:32 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:32 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:32 Warning:#35:Func gets: unsigned char *
sccz80:"code.c" L:32 Warning:#36:In function: main() line 6
sccz80:"code.c" L:32 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:32 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:32 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:32 Warning:#36:In function: main() line 6
sccz80:"code.c" L:32 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:32 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:32 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:32 Warning:#8:Converting integer to pointer without cast
sccz80:"code.c" L:34 Warning:#36:In function: main() line 8
sccz80:"code.c" L:34 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:34 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:34 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:34 Warning:#36:In function: main() line 8
sccz80:"code.c" L:34 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:34 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:34 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:34 Warning:#36:In function: main() line 8
sccz80:"code.c" L:34 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:34 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:34 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:35 Warning:#36:In function: main() line 9
sccz80:"code.c" L:35 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:35 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:35 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:35 Warning:#36:In function: main() line 9
sccz80:"code.c" L:35 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:35 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:35 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:35 Warning:#36:In function: main() line 9
sccz80:"code.c" L:35 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:35 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:35 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:37 Warning:#36:In function: main() line 11
sccz80:"code.c" L:37 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:37 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:37 Warning:#35:Func gets: unsigned char *
sccz80:"code.c" L:37 Warning:#36:In function: main() line 11
sccz80:"code.c" L:37 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:37 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:37 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:37 Warning:#36:In function: main() line 11
sccz80:"code.c" L:37 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:37 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:37 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:37 Warning:#8:Converting integer to pointer without cast
sccz80:"code.c" L:38 Warning:#36:In function: main() line 12
sccz80:"code.c" L:38 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:38 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:38 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:38 Warning:#36:In function: main() line 12
sccz80:"code.c" L:38 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:38 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:38 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:38 Warning:#36:In function: main() line 12
sccz80:"code.c" L:38 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:38 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:38 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:39 Warning:#36:In function: main() line 13
sccz80:"code.c" L:39 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:39 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:39 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:39 Warning:#36:In function: main() line 13
sccz80:"code.c" L:39 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:39 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:39 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:39 Warning:#36:In function: main() line 13
sccz80:"code.c" L:39 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:39 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:39 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:42 Warning:#36:In function: main() line 16
sccz80:"code.c" L:42 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:42 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:42 Warning:#35:Func gets: unsigned char *
sccz80:"code.c" L:42 Warning:#36:In function: main() line 16
sccz80:"code.c" L:42 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:42 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:42 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:42 Warning:#36:In function: main() line 16
sccz80:"code.c" L:42 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:42 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:42 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:42 Warning:#8:Converting integer to pointer without cast
sccz80:"code.c" L:44 Warning:#36:In function: main() line 18
sccz80:"code.c" L:44 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:44 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:44 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:44 Warning:#36:In function: main() line 18
sccz80:"code.c" L:44 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:44 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:44 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:44 Warning:#36:In function: main() line 18
sccz80:"code.c" L:44 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:44 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:44 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:45 Warning:#36:In function: main() line 19
sccz80:"code.c" L:45 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:45 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:45 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:45 Warning:#36:In function: main() line 19
sccz80:"code.c" L:45 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:45 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:45 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:45 Warning:#36:In function: main() line 19
sccz80:"code.c" L:45 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:45 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:45 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:47 Warning:#36:In function: main() line 21
sccz80:"code.c" L:47 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:47 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:47 Warning:#35:Func gets: unsigned char *
sccz80:"code.c" L:47 Warning:#36:In function: main() line 21
sccz80:"code.c" L:47 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:47 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:47 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:47 Warning:#36:In function: main() line 21
sccz80:"code.c" L:47 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:47 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:47 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:47 Warning:#36:In function: main() line 21
sccz80:"code.c" L:47 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:47 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:47 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:47 Warning:#36:In function: main() line 21
sccz80:"code.c" L:47 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:47 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:47 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:47 Warning:#8:Converting integer to pointer without cast
sccz80:"code.c" L:48 Warning:#36:In function: main() line 22
sccz80:"code.c" L:48 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:48 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:48 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:48 Warning:#36:In function: main() line 22
sccz80:"code.c" L:48 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:48 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:48 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:48 Warning:#36:In function: main() line 22
sccz80:"code.c" L:48 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:48 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:48 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:49 Warning:#36:In function: main() line 23
sccz80:"code.c" L:49 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:49 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:49 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:49 Warning:#36:In function: main() line 23
sccz80:"code.c" L:49 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:49 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:49 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:49 Warning:#36:In function: main() line 23
sccz80:"code.c" L:49 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:49 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:49 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:51 Warning:#36:In function: main() line 25
sccz80:"code.c" L:51 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:51 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:51 Warning:#35:Func gets: unsigned char *
sccz80:"code.c" L:51 Warning:#36:In function: main() line 25
sccz80:"code.c" L:51 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:51 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:51 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:51 Warning:#36:In function: main() line 25
sccz80:"code.c" L:51 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:51 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:51 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:51 Warning:#36:In function: main() line 25
sccz80:"code.c" L:51 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:51 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:51 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:51 Warning:#36:In function: main() line 25
sccz80:"code.c" L:51 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:51 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:51 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:51 Warning:#8:Converting integer to pointer without cast
sccz80:"code.c" L:53 Warning:#36:In function: main() line 27
sccz80:"code.c" L:53 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:53 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:53 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:53 Warning:#36:In function: main() line 27
sccz80:"code.c" L:53 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:53 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:53 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:53 Warning:#36:In function: main() line 27
sccz80:"code.c" L:53 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:53 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:53 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:54 Warning:#36:In function: main() line 28
sccz80:"code.c" L:54 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:54 Warning:#34:Func expects: unsigned int *
sccz80:"code.c" L:54 Warning:#35:Func gets: signed char *
sccz80:"code.c" L:54 Warning:#36:In function: main() line 28
sccz80:"code.c" L:54 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:54 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:54 Warning:#35:Func gets: unsigned int
sccz80:"code.c" L:54 Warning:#36:In function: main() line 28
sccz80:"code.c" L:54 Warning:#13:Pointer/pointer type mismatch
sccz80:"code.c" L:54 Warning:#34:Func expects: unsigned char *
sccz80:"code.c" L:54 Warning:#35:Func gets: unsigned int
copt /usr/share/z88dk/lib/z80rules.2 < /tmp/tmpXXVOvZUs.asm > /tmp/tmpXXVOvZUs.op1
copt /usr/share/z88dk/lib/z80rules.1 < /tmp/tmpXXVOvZUs.op1 > /tmp/tmpXXVOvZUs.op2
copt /usr/share/z88dk/lib/z80rules.0 < /tmp/tmpXXVOvZUs.op2 > /tmp/tmpXXVOvZUs.opt
z80asm -a -m -Mo -L/usr/share/z88dk/lib/clibs -I/usr/share/z88dk/lib -ouno.bin -eopt -indos -icpcrslib -icpc_clib -iz80_crt0 /tmp/tmpXXvv1cl0.opt /tmp/tmpXXVOvZUs.opt
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
21 errors occurred during assembly
Key to filenames:
/tmp/tmpXXVOvZUs.opt = code.c
Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression PANTALLA_JUEGO

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression POSICION_INICIAL_SUPERBUFFER

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression TILES_OCULTOS_ANCHO0*2

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression ANCHO_PANTALLA_BYTES

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression TILES_OCULTOS_ALTO0*8

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression POSICION_INICIO_PANTALLA_VISIBLE_SB+1

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression ANCHO_PANTALLA_BYTES-4*(TILES_OCULTOS_ANCHO0)

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression ALTO_PANTALLA_BYTES-16*(TILES_OCULTOS_ALTO0)

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression TILES_OCULTOS_ALTO0*2

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression POSICIONES_PANTALLA

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression 2*TILES_OCULTOS_ANCHO0

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression POSICION_INICIO_PANTALLA_VISIBLE+1

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression POSICION_INICIO_PANTALLA_VISIBLE2+1

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression CREASCANES

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression POSICIONES_SUPER_BUFFER

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression TILES

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression ANCHO_PANTALLA_BYTES/2-1

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression 7*ANCHO_PANTALLA_BYTES+2

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression (ALTO_PANTALLA_BYTES/8)*(ANCHO_PANTALLA_BYTES/2)

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression ANCHO_PANTALLA_BYTES-1

Error: File '/usr/share/z88dk/lib/clibs/cpcrslib.lib', Module 'CPC_SHOWTILEMAP', Symbol not defined
Error in expression 4*(TILES_OCULTOS_ANCHO0)
Muchas gracias por tu ayuda Arta, pero creo que estoy haciendo algo mal :oops:

Avatar de Usuario
Artaburu
Trasteador
Trasteador
Mensajes: 8420
Registrado: Vie 07 Oct , 2005 6:18 pm
Ubicación: En tu pantalla

Re: Empezando con z88dk

Mensajepor Artaburu » Jue 10 May , 2012 7:13 pm

Yastá localizao, menos mal que has puesto todo... pero nos vamos a quedar al principio ;)

Código: Seleccionar todo

zcc +cpc -create-app -make-app -O3 -unsigned -o uno.bin code.c -lcpcrslib -lndos -zorg=16384
Como usas mapa de tiles necesitas leer las definiciones que están en TileMapConf.asm:

Código: Seleccionar todo

zcc +cpc TileMapConf.asm -m -create-app -make-app -O3 -unsigned -o uno.bin code.c -lcpcrslib -lndos -zorg=16384
¡Seguro que así te va!
Salu2,
Arta

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Jue 10 May , 2012 8:14 pm

Si, para el ejemplo 3, si que me conseguí que funcionara así, la salida de pantalla que he puesto es para el ejemplo 10, que es el que me falla hora.

No consigo compilar nada desde el ejemplo 10 en adelante...

Avatar de Usuario
Artaburu
Trasteador
Trasteador
Mensajes: 8420
Registrado: Vie 07 Oct , 2005 6:18 pm
Ubicación: En tu pantalla

Re: Empezando con z88dk

Mensajepor Artaburu » Jue 10 May , 2012 8:56 pm

Ostras, no me había dado cuenta.
Pero me parece muy extraño lo que te dice porque ese ejemplo no usa el mapa de tiles...
¿has compilado la librería o has usado las del rar directamente?
¿Puedes colgar aquí el ejemplo y las librerías que tengas para ver si a mí me da problemas? Es que yo lo estoy compilando perfectamente. :?: :?:
Salu2,
Arta

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Jue 10 May , 2012 9:31 pm

Estoy usando las liberías del rar, utilizando los ficheros .lib y .h que hay en el raíz del .rar. De todas maneras he probado a usar los que hay dentro del directorio cpcrslib y tampoco me funciona. >|

En cuanto al código del ejemplo que estoy usando es también el del rar.

Te podría mandar los ficheros, pero sería mandarte directamente el .rar :)

No tengo un Windows para probar. Quizá este fin de semana tenga tiempo para hacerme con uno y hacer la prueba, a ver si es el condenado LInux :twisted:

Muchísimas gracias por tu ayuda y paciencia!!!

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Mié 06 Mar , 2013 9:48 pm

Al final me he pasado al SDCC, con este compilador no tengo problemas en compilar todos los ejemplos \:D/

Avatar de Usuario
Artaburu
Trasteador
Trasteador
Mensajes: 8420
Registrado: Vie 07 Oct , 2005 6:18 pm
Ubicación: En tu pantalla

Re: Empezando con z88dk

Mensajepor Artaburu » Jue 07 Mar , 2013 11:39 am

Al final me he pasado al SDCC, con este compilador no tengo problemas en compilar todos los ejemplos \:D/
\:D/ \:D/ \:D/
Salu2,
Arta

Avatar de Usuario
jrodriguezv
Forero habitual
Forero habitual
Mensajes: 157
Registrado: Dom 06 May , 2012 1:55 pm

Re: Empezando con z88dk

Mensajepor jrodriguezv » Jue 07 Mar , 2013 12:56 pm

Muchas gracias Arta por tu ayuda con este tema.

Pronto empezaré a daros la tabarra con preguntas absurdas de supernovato :-)


¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro


La Comunidad Española
ESP Soft, juegos para tu CPC Foro de Amstrad CPC Todos los juegos para CPC en un CD Web dedicada al Amstrad CPC (utilidades) Información útil para el CPC (talleres) Selección de juegos de Amstrad CPC Mundo CPC Pree Play then any Key CPC Basic