光草's profileglenPhotosBlogListsMore Tools Help

Blog


    October 22

    Wrong default gateway delays Corba program init.

    In the project of My lab, we use TAO , the implementation of Corba, to compose the distributed software for LAMOST telescope.
    I get one problem, when the default gateway of network setting of my computer is wrong, it always takes a long time, about 10 seconds to get through belowing codes.
      CosNaming::NamingContext_var root=CosNaming::NamingContext::_narrow(NamingObj.in());
    also this clause takes about 10 seconds to pass.
      PortableServer::POA_var poa=PortableServer::POA::_narrow(RootObj.in());
     
      It also happens when I unplug network cable, that I work on Linux, the system can not automatically find unconnect to network .
      I spent whole morning trying to fix the problem, but in vain. I have tested to specify the Naming Service using -ORBInitRef *** or  -ORBNameServicePort ***. They are not usefull.
      I give up. Future, when using the controll software in LAMOST telescope, remember to fix the default gateway setting, or leave it blank on Linux. Otherwise, it won't work well.
    October 21

    parker ftp搜索安装成功

    今天把parker安装了下。中间解决了几个问题。
    1,src/Makefile 文件中少了一个字符。
    @if [ ! =-d ../bin ]; then \               这个\少了,导致下面的-cp getdnsname ../bin/. 等不执行。
     
    2,bin/makestat这个可执行程序不能运行。据韦东说是分析结果的,根本没有实现。不用管。
     
    3,ect/CollectList 原先第一行是
    192.168.0.1   后来我改成默认网关就可以了。
     

    c++编译错误:string 在此作用域中尚未声明

     
    C++编程: string strName;
    编译错误:
       string 在此作用域中尚未声明
    虽然#include <string>,编译错误仍然存在。
    最后用 std::string strName; 编译才通过。