[Ace-users] Re: Problem in Creating instance of Singleton class in HP UX

Mann.Patidar at gmail.com Mann.Patidar at gmail.com
Mon Sep 17 06:53:34 CDT 2007


Hi,

        Did you mean there is a bug in ACE5.5 [HP-UX ,with aCC] that
we cant create instance of singleton class.

       Is this problem is resoved in ACE 5.6 ?

Regards
Manish

On Sep 17, 4:02 pm, "Johnny Willemsen" <jwillem... at remedy.nl> wrote:
> Hi,
>
> Thanks for using the PRF form. Please upgrade to ACE 5.6 which you can
> obtain fromhttp://download.dre.vanderbilt.edu
>
> Regards,
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC  Berkel en Rodenrijs
> The Netherlandswww.theaceorb.nl/www.remedy.nl 
>
> *** Integrated compile and test statistics seehttp://scoreboard.theaceorb.nl***
> *** Commercial service and support for ACE/TAO/CIAO             ***
> *** Seehttp://www.theaceorb.nl/en/support.html                ***
>
> <Mann.Pati... at gmail.com> wrote in message
>
> <news:1190024308.556145.91470 at g4g2000hsf.googlegroups.com>...
>
>
>
> > Hi all,
>
> >       Please find my problem [creating instance of sigleton class ] in
> > Problem-Report-Format.
>
> >   ACE VERSION: 5.5
>
> >     HOST MACHINE and OPERATING SYSTEM:
> >         HP-UX 11.00
>
> >    Compiler        HP ANSI C++ B3910B A.03.37
>
> >     ace/config.h FILE :
> >            #include "ace/config-hpux-11.00.h"
>
> >     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE
> >            include
>
> $(ACE_ROOT)/include/makeinclude/platform_hpux_aCC.GNU
>
>
>
>
>
> >     AREA/CLASS/EXAMPLE AFFECTED:
> >    When we try to create instance on any singleton class in our
> > application,
>
> >     DOES THE PROBLEM AFFECT:
> >       COMPILATION of application
> > [Please indicate whether ACE, your application, or both are affected.]
>
> >     SYNOPSIS:
> > [Brief description of the problem]
> >    When We are try to create a object of singleton class provided by
> us,
> > compiler is giving  compilation error :
>
> >     unresolved symbol static at_exit (ACE_Cleanup , void );
>
> >     DESCRIPTION:
> >            I think this problem occur because of static object does get
> > instantiate when we called ACE::init();
> >            when we tried to get instance of singleton ,it will give the
> above
> > error.
>
> >            may be ACE_Object_Manager didnt get instantiate when we are
> calling
> > ACE::init();
>
> >    I tired few solution:
> >            1. I added ACE_HAS_NONSTATIC_OBJECT_MANAGER in config.h
> before
> > #include "ace/config-hpux-11.00.h"  and recompile the ace but same
> > error is comming
>
> >            2. We have called
> >                    ACE_Object_Manager
>
> *OM=ACE_Object_Manager::instance();
>
>
>
> >                    in main function but does not work
>
> >    Did any one have any idea how to resovle this problem.
>
> > Regards
> > Manish- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -




More information about the Ace-users mailing list