14 Jan, 2010, deathrow35 wrote in the 1st comment:
Votes: 0
error: expected specifier-qualifier-list before EXT_BV and would it better for me to use the smaug kingdom code and convert or should i just use it as a template and code from scratch?
Thank you
14 Jan, 2010, David Haley wrote in the 2nd comment:
Votes: 0
As a general note, when posting compiler errors, you should:
1. copy/paste from the output so that we see exact messages
2. post the relevant line(s) of code, as well as some context

(And don't forget to use code tags so that it's easily legible.)
14 Jan, 2010, deathrow35 wrote in the 3rd comment:
Votes: 0
Sorry here it is…
kingdoms.h:196: error: expected specifier-qualifier-list before EXT_BV
kingdoms.h:228: error: expected specifier-qualifier-list before EXT_BV

and the code is
struct troop_data
{
TROOP_DATA * next;
TROOP_DATA * prev;
char * filename;
short magic_specialty;
char * name;
short race;
EXT_BV attribute;


Its the one with EXT_BV attribute;
I'm guessing EXT_BV would stand for extra bitvector…just guessing.
Like i said, I am converting smaug to rom, so that why i ask my previous statement about writing it from scratch.

Edit by kiasyn (added code tags)
14 Jan, 2010, David Haley wrote in the 4th comment:
Votes: 0
Thanks. Please use the code tags as well as it makes reading the code a lot easier.

EXT_BV does indeed mean extended bitvector. My guess is that troop_data is being defined before EXT_BV has been defined. You'll need to figure out where EXT_BV is defined in your code, and make sure that the compiler sees it before troop_data.

As for writing something from scratch, it kind of depends on your coding ability, so it's hard to answer that question for you. I tend to avoid writing these things from scratch unless I feel a need to do so, e.g. because the snippet doesn't meet my requirements or has poor quality code style.
0.0/4