Hi,
thx for your help!
You indicated before that you downloaded this code from 'ibm.com'. Why
not ask IBM about that code?
I already did and still waiting for an answer.
Please allow me to ask again cause I tried again several things with the xlC
because IBM delivered a makefile which shouldn't make any trouble.
Everything seems to work fine - except one thing (as mentioned above in the
thread):
________________________________________
zivunix:compile> make
xlC -+ -O -c -o gen.o gen.c
"gen.h", line 183.30: 1540-0063 (S) The text "StringSet" is unexpected.
make: *** [gen.o] Error 1
zivunix:compile>
________________________________________
The error occurs at *** in the following class "extract":
________________________________________
class String
{
friend class StringSet;
LINT nitems; // number of items
Item *items; // list of the items
// FLOAT *rval; // random value (used to get random ordering of the items)
// Item *ritems; // randomly chosen items
FLOAT prob; // probability that this string is chosen
FLOAT conf; // probability that this string is corrrupted
// void shuffle(void); // shuffles items in string
public:
String(LINT nitems);
~String(void);
void display(ofstream &fp, LINT prob_comp = 1);
void display(ofstream &fp, StringSet &lits, LINT prob_comp = 1);
<-- ***
// prob is multiplied by prob_comp before being writeed
LINT size(void) { return nitems;}
Item item(LINT n) { return items[n];} // return nth item of the string
FLOAT conf_lvl(void) { return conf; }
void set_size(LINT newsize) { nitems = newsize;}
void set_item(LINT n, Item itm) { items[n] = itm;}
void set_conf_lvl(FLOAT newconf) { conf = newconf; }
// void shuffle(LINT k); // allows selection of k random items from the
string
// Item rand_item(LINT n) { return ritems[n];} // works with shuffle
};
________________________________________
"StringSet &lits" is the unexpected text. What can be the possible reason?
c u - Michael