AW: [omniORB] Problem compiling with wstrings on Windows..
Barthel Marco (MPA/DS)
Marco.Barthel at comergo.com
Mon Dec 13 12:05:36 GMT 2004
> 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.
There is also Code in omniorb which supports a mapping to wchar_t.
In your application the option above is probably set to true.
You should build your application and the ORB with the same mapping.
-marco
>
> FalconCorba_Impl.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static wchar_t const * const
> _CORBA_WString_helper::empty_wstring"
> (__imp_?empty_wstring at _CORBA_WString_helper@@2QB_WB)
> FalconDocWatch.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static wchar_t const * const
> _CORBA_WString_helper::empty_wstring"
> (__imp_?empty_wstring at _CORBA_WString_helper@@2QB_WB)
> FalconSystemSK.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static wchar_t const * const
> _CORBA_WString_helper::empty_wstring"
> (__imp_?empty_wstring at _CORBA_WString_helper@@2QB_WB)
> FalconEditorialSK.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static wchar_t const * const
> _CORBA_WString_helper::empty_wstring"
> (__imp_?empty_wstring at _CORBA_WString_helper@@2QB_WB)
>
> Either i'm not linking to the right .lib's, or perhaps the
> libs aren't compiled right, but I"m not sure which. Any idea
> where the _CORBA_WString_helper is exported from?
More information about the omniORB-list
mailing list