Archived
This forum has been archived. Please start a new discussion on GitHub.
slice2cpp ByteSeq Not Defined
Took Ripper example from manual and tried running slice2cpp and got
Ripper.ice:16 `Ice::ByteSeq' is not defined
Ripper.ice:21 `Ice::ByteSeq' is not defined
Am i missing something ?
Thanks
module Ripper
{
exception EncodingFailedException
{
string reason;
};
sequence<short> Samples;
interface Mp3Encoder
{
// Input: PCM samples for left and right channels
// Output: MP3 frame(s).
Ice::ByteSeq encode(Samples leftSamples, Samples rightSamples)
throws EncodingFailedException;
// You must flush to get the last frame(s). Flush also
// destroys the encoder object.
Ice::ByteSeq flush()
throws EncodingFailedException;
};
interface Mp3EncoderFactory
{
Mp3Encoder* createEncoder();
};
};
Ripper.ice:16 `Ice::ByteSeq' is not defined
Ripper.ice:21 `Ice::ByteSeq' is not defined
Am i missing something ?
Thanks
module Ripper
{
exception EncodingFailedException
{
string reason;
};
sequence<short> Samples;
interface Mp3Encoder
{
// Input: PCM samples for left and right channels
// Output: MP3 frame(s).
Ice::ByteSeq encode(Samples leftSamples, Samples rightSamples)
throws EncodingFailedException;
// You must flush to get the last frame(s). Flush also
// destroys the encoder object.
Ice::ByteSeq flush()
throws EncodingFailedException;
};
interface Mp3EncoderFactory
{
Mp3Encoder* createEncoder();
};
};
0
Comments
-
Hi,
Thanks for pointing this out, I've fixed the documentation. You need to include <Ice/BuiltinSequences.ice> to get the Ice::ByteSeq definition. This Slice file is located in the "slice" directory of your Ice installation.
Cheers,
Benoit.0