Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice 3.3.0 slice2cpp with --header-ext flag

Hi,
calling slice2cpp with --header-ext hpp generate source files with the expected hpp extension but modify also #include directives for Ice includes file extension too placed inside generated files.

// Ice version 3.3.0
// Generated from file `argo.ice'

#ifndef __src_argo_hpp__
#define __src_argo_hpp__

#include <Ice/LocalObjectF.h>
#include <Ice/ProxyF.h>
#include <Ice/ObjectF.h>
#include <Ice/Exception.h>
#include <Ice/LocalObject.h>
#include <Ice/Proxy.h>
#include <Ice/Object.h>
#include <Ice/Outgoing.h>
#include <Ice/OutgoingAsync.h>
#include <Ice/Incoming.h>
#include <Ice/Direct.h>
#include <Ice/UserExceptionFactory.h>
#include <Ice/FactoryTable.h>
#include <Ice/StreamF.h>
#include <Glacier2/Session.hpp> <
this one
#include <ade.hpp>
#include <Ice/UndefSysMacros.h>

generated from:
#ifndef ARGO_ICE
#define ARGO_ICE

#include <Glacier2/Session.ice>
#include <ade.ice>

["cpp:type:wstring"]
module ade
{
.......
.......


Is that the right behaviour?

Comments

  • benoit
    benoit Rennes, France
    Hi Paolo,

    Yes, that's a known issue, see Michi's response to a similar question [thread=3871]here[/thread].

    Cheers,
    Benoit.