Home Bug Reports

Bug in slice2cppe

jkiddjkidd Member Jens VilladsenOrganization: PersonalProject: Master Thesis - evaluation embedded middleware
Calling "slice2cppe --impl Test1_IndividuelDatatypeTest.ice", where slice2cppe is version 1.3.0 and the .ice file is as follows:

#ifndef TEST1_INDIVIDUELDATATYPETEST
#define TEST1_INDIVIDUELDATATYPETEST

module Test1IndividuelDatatypeTest
{
sequence<byte> byteArray;

class SimpleObject
{
void print();
};

class SimpleShort extends SimpleObject
{
short value;
};

class SimpleLong extends SimpleObject
{
long value;
};

class SimpleDouble extends SimpleObject
{
double value;
};

class SimpleFloat extends SimpleObject
{
float value;
};

class SimpleBoolean extends SimpleObject
{
bool value;
};

class SimpleByte extends SimpleObject
{
byte value;
};

class SimpleString extends SimpleObject
{
string value;
};

class SimpleByteArray extends SimpleObject
{
byteArray value;
};

interface Benchmark {
void genericObjectFunctionWithoutReturnType( SimpleObject obj);
bool genericObjectFunctionWithReturnType( SimpleObject obj);
};
};

#endif

produces four files. The file "Test1_IndividuelDatatypeTestI.h" is generated containing the following includes:
...
#include <Test1_IndividuelDatatypeTest.h>
#include <SimpleObjectI.h>
...
How come is says "#include <SimpleObjectI.h>" when it does not exists?

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    If SimpleObjectI.h/.cpp is not generated that sounds like a bug.
  • jkiddjkidd Member Jens VilladsenOrganization: PersonalProject: Master Thesis - evaluation embedded middleware
    Well, it does not. I happens on both Windows XP SP3, Windows 7 and Ubuntu 9.04. Try run it yourself. After the code generation, one just have to outcomment that particular line for successful compilation.
Sign In or Register to comment.