AW: [omniORB] Problem compiling with wstrings on Windows..

Duncan Grisby duncan at grisby.org
Mon Dec 13 11:50:16 GMT 2004


On Monday 13 December, "Barthel Marco (MPA/DS)" wrote:
> > Hello all. I just started making use of a new series of 
> > objects on our windows environment, and i'm getting linker 
> > errors now when I try to compile the project.
> 
> We had similar problems. The problem is that wstring stuff is either
> represented as wchar_t or unsigned short.
> 
> In VC++ 7.1 there is an options called
> 
> "Treat wchar_t as Built-in Type" (C/C++ - Language)
> 
> In Omniorb wstring is mapped to an array of unsigned short.

No it isn't. By default, it's mapped to whar_t. As an option, it can be
mapped to array of unsigned short.

To the original poster, try modifying the omniORB echo example to use
wstring instead of string, and compile it using the provided makefiles.
Does that work?

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list