Search found 7 matches

by slenkar
Thu Feb 12, 2015 3:21 pm
Forum: Testing
Topic: New CLIB Looking for Testers
Replies: 8
Views: 15809

I compiled z88dk ok when I try to compile the spectrum examples I get this: cp: cannot stat ?/usr/local/lib/z88dk//lib/spec_crt0.opt?: No such file or directory Cannot copy crt0 file the file path has 2 forward slashes Also if the forward slash was removed the opt file is not actually in the folder ...
by slenkar
Sun Aug 11, 2013 6:43 pm
Forum: z88dk-users
Topic: [Z88dk-users] two dimensional arrays?
Replies: 6
Views: 10274

In the docs it says not to use multi dimensional arrays, so what should I use instead? int *a[5]; for (i=0; i<5; ++i) a[i] = (int *)(malloc(10*sizeof(int))); Thanks does this code create an array of a[5][10] ? ------------------------------------------------------------------------------ Get 100% v...
by slenkar
Sun Aug 11, 2013 3:34 pm
Forum: Bug reports
Topic: symbol not defined
Replies: 2
Views: 4622

symbol not defined

when trying to compile a file called Dungeon.c into an object it says 'symbol not defined'
the error is in a file called '/tmp/tmpXXk3xQfp.opt'
but when I look at that file it is empty
I made all of the functions 'extern' and put their prototypes in Dungeon.h
by slenkar
Sat Aug 10, 2013 7:51 pm
Forum: z88dk-users
Topic: [Z88dk-users] two dimensional arrays?
Replies: 6
Views: 10274

[Z88dk-users] two dimensional arrays?

In the docs it says not to use multi dimensional arrays, so what should I use instead? ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to c...
by slenkar
Sat Aug 10, 2013 6:18 pm
Forum: Sinclair ZX
Topic: building precompiled libraries to save time
Replies: 0
Views: 3076

building precompiled libraries to save time

Im trying to build a little library as an example it is called helper.c and has helper.h helper.c looks like this: extern char add(char x,char y) {return x+y;} helper.h looks like this: #IFNDEF helper char add(char x,char y); #DEFINE helper #ENDIF when I try to compile it into an object file with th...
by slenkar
Wed Feb 06, 2013 2:07 pm
Forum: Sinclair ZX
Topic: trying to compile sp1 examples
Replies: 3
Views: 6450

aha!
it seems I have to copy the .h file to /usr/share/z88dk/include
as the make file only copies it to /root./z88dk/z88dk/include where i unzipped the z88dk files
by slenkar
Sun Feb 03, 2013 7:11 pm
Forum: Sinclair ZX
Topic: trying to compile sp1 examples
Replies: 3
Views: 6450

trying to compile sp1 examples

hi Im using linux the error message is cpp: line 13, Fatal error: Cannot open include file "sprites/sp1.h" #include <sprites/sp1.h> I made sure I did make install and I see sp1.h in /z88dk/z88dk/include/sprites when I try to compile the sp1 examples here is my command line: zcc +zx -vn ex2...