"Krzysztof Kolago" <krzysztof.kolago@wp.pl> wrote...
I've download some header files from Internet and I've tried to use
them
in my program, but Borland C++ Builder is stopping, when it reach this
structure:
struct fann_neuron
{
fann_type *weights;
struct fann_neuron **connected_neurons;
unsigned int num_connections;
fann_type value;
}__attribute__((packed));
On the last line of this structure Builder wrote that there - before
"packed" word - ")" was expected. How should I modificate header file, if
I
want to compile my program with success? Example programs' sources are
stopping on the same line.
Remove everything between the closing '}' and the ';'. The
__attribute__ macro (my guess) is not standard C++. Probably
the author of the code used a compiler that had that extension
and you use one that doesn't.
Victor
.