利用omniORB编译corba应用程序 c++,该怎么解决

如题所述

不知道你用的是什么版本的CORBA产品,猜是ACETAO看了下ACETAO的安装文档:#build有描述:CreatingStaticLibraries(*.lib)Instructionsfordynamiclibrariesapplytostaticlibrariesaswell.Userswillhavetousethe_Static.slnfilesforcreatingstaticlibrariesandlinkingwiththem.看起来应该是支持静态库编译的,但是最新版本的ACE-6.2.5并没有提供 _Static.sln解决方案,也没有提供VS2008下的解决方案。较早的版本,至少ACE-6.2还提供VS2008下的解决方案(ACE_vc9.sln)。但是ACE-6.2也没有提供ACE_vc9_Static.sln。可以打开vc9的解决方案,修改项目属性尝试一下。其它的问题,在文档中应该已经有描述:MakesureACEisbuilt(ForVisualC++7.1,useACE.sln).确保ACE已经编译完成。Firstmakesure ACE_wrappers\bin islistedintheExecutableDirectoriesinTools|Options.ThisisneededifusingtheTAO_IDLcompilerunderMSVC.Ifyouintendtoalsousethereleaseversionofthelibrariesinthesameworkspaceyouhavetobecareful,sincetheexecutablenameforTAO_IDLissameindebugandreleasebuilds.Youcanuseonlyortheoethrinthesameworkspace.Thisshouldn'tbeanissuesincetheprojectsfortestsandexamplesaresetuptotransparentlyuseoneortheother.把 ACE_wrappers\bin配置到VS2008工具->选项->可执行文件目录下Loadthesolution $TAO_ROOT\TAO.sln andbuildfirsttheTAO_IDLcompiler.AfterthatbuildtheTAOlibrary.ThissolutionhasalmostalltheprojectsunderTAOwhichcanbebuilt.Thereforepleasepickandchooseprojectsthatyouwanttobuild.首先编译TAO_IDL再编译TAOlibrary
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答