[omniORB] VC6 Question/omni idl file output question)

Olden A (SApS) aolden@glam.ac.uk
Thu Jan 2 17:25:02 2003


Thanks both, 

But i think I solved the problem I may have made a mistake when i described
the problem, it was in fact a linking problem with the errors given below,
When I looked at the project class view the Echo items weren't there (only
int main). But I have to rename the files to cpp and h , otherwise it
complians that it's a c program and the header is C++ only. But i've got it
up and running, so by forcing omniidl it'll be easiar in future.

Now if only linking my omniorb client into jacorb server works i'll be quite
happy :-).

Andrew






azcvb.obj : error LNK2001: unresolved external symbol "public: static void
__cdecl Echo_Helper::release(class _objref_Echo *)"
(release@Echo_Helper@@SAXPAV_objref_Echo@@@Z)
azcvb.obj : error LNK2001: unresolved external symbol "public: static class
_objref_Echo * __cdecl Echo::_narrow(class CORBA::Object *)"
(?_narrow@Echo@@SAPAV_objref_Echo@@PAVObject@CORBA@@@Z)
azcvb.obj : error LNK2001: unresolved external symbol "public: char *
__thiscall _objref_Echo::echoString(char const *)"
(?echoString@_objref_Echo@@QAEPADPBD@Z)
Release/azcvb.exe : fatal error LNK1120: 3 unresolved externals

Andrew



-----Original Message-----
From: Vitaly Prapirny
To: Olden A (SApS)
Cc: omniorb-list@omniorb-support.com
Sent: 02/01/03 17:24
Subject: Re: [omniORB] VC6 Question/omni idl file output question)

"Olden A (SApS)" wrote:
> 
> Thanks Dave,
> 
> you where right - i delighted the Stdafx when i pasted the eg3_clt
> sourcecode into my project (i did this for a test), and the _x86_
directive
> someone got deleted when i changed over to Release configuration - i
had it
> "All Configurations".
> 
> Those errors have now gone, but I know have four new errors, but i
think
> they are related to the fact that the IDL outputs two files, with the
> extention .cc (EchoSK.cc) and (echo.hh). But VC doesn't seem to be
compiling
> them, i've tried renaming them to .h and .cpp but that doesn't work.
> 
> In the readme it says that the files should have the extention .cpp,
is
> there anything i need to two to make force the idl to output these
files
> instead the .hh and .cc version (or just get VC6 to compile those).

omniidl C++ back-end has following options:
  -Wbh=<suffix>     Specify suffix for generated header files
  -Wbs=<suffix>     Specify suffix for generated stub files

List of all omniidl C++ back-end options you can get by

omniidl.exe -bcxx -u

> 
> Thanks
> Andrew
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list