|
Post by paulblay on Jan 30, 2009 12:47:05 GMT -5
I'm experimenting with compiling Portralis from the source code (not getting very far yet).
types.h line 1504 is resistances[MAX_RESIST]; I think it should be s16b resistances[MAX_RESIST];
I get another compile error on line 1937 of tables.c
1933 magic_type realm_info_base[MAX_REALM][64] = 1934 { 1935 /* Nothing */ 1936 { 1937 {NULL} 1938 },
invalid initialization type; found 'pointer to void' expected 'unsigned char'
That's the first use of NULL in that file, so I guess it wouldn't get past the others either.
|
|
|
Post by Variaz on Jan 30, 2009 13:21:51 GMT -5
Thanks for reporting the types.h error. Wonder why my compiler let it go...
As for the tables.c error, in 008, there's changes, and I believe this array no longer exists anymore. (magic realms being old junk)
|
|
|
Post by paulblay on Jan 30, 2009 13:44:27 GMT -5
As for the tables.c error, in 008, there's changes, and I believe this array no longer exists anymore. (magic realms being old junk) I think it is no longer used, but it is still included in the current source download. I commented them out as they didn't seem to be used anywhere. I'm now getting quite a few errors from "return ..." being used in functions defined as void. Maybe they show up as "warnings" with the compiler you use, but lcc doesn't let me compile with them "void functions can't return a value". [Edit]Yeah, I'm getting lots of these 'void function' problems. I'm not noting them all down because I suspect you may already have fixed them (and if your compiler gives warnings for them you should be able to find them easily anyway).
|
|
|
Post by Gando on Jan 30, 2009 17:39:19 GMT -5
As for the tables.c error, in 008, there's changes, and I believe this array no longer exists anymore. (magic realms being old junk) I think it is no longer used, but it is still included in the current source download. I commented them out as they didn't seem to be used anywhere. I'm now getting quite a few errors from "return ..." being used in functions defined as void. Maybe they show up as "warnings" with the compiler you use, but lcc doesn't let me compile with them "void functions can't return a value". [Edit]Yeah, I'm getting lots of these 'void function' problems. I'm not noting them all down because I suspect you may already have fixed them (and if your compiler gives warnings for them you should be able to find them easily anyway). If I remember correctly the warnings disallow compile thing is an option you can turn on and off with LCC and similar compilers. Its been a decade or so since I last used a compiler other than the visual studios ide.
|
|