Archived
This forum has been archived. Please start a new discussion on GitHub.
Bug in slice2cppe
in Bug Reports
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?
#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?
0
Comments
-
If SimpleObjectI.h/.cpp is not generated that sounds like a bug.0
-
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.0