Menu

#4 /test/DllObjectMangerTest.cpp compile error

open
nobody
None
7
2009-02-12
2009-02-12
wirser
No

while trying to compile hbstock on fedora 9 86_64 the following error was encountered

g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -I/usr/include -I../../include -O2 -MT libhbstock2_la-hbstock_init.lo -MD -MP -MF .deps/libhbstock2_la-hbstock_init.Tpo -c ../../src/hbstock_init.cpp -fPIC -DPIC -o .libs/libhbstock2_la-hbstock_init.o
In file included from ../../include/hbstock2/dll_object_manger.h:117,
from ../../src/hbstock_init.cpp:17:
../../include/hbstock2/dll_object_manger_def.h: In member function 'void hbstock2::DllObjectManger<T>::set_default_dllobject(const ACE_Refcounted_Auto_Ptr<T, ACE_Null_Mutex>&)':
../../include/hbstock2/dll_object_manger_def.h:195: error: must #include <typeinfo> before using typeid
../../include/hbstock2/dll_object_manger_def.h: In member function 'ACE_Refcounted_Auto_Ptr<T, ACE_Null_Mutex> hbstock2::DllObjectManger<T>::get_default_dllobject()':
../../include/hbstock2/dll_object_manger_def.h:230: error: must #include <typeinfo> before using typeid
make[2]: *** [libhbstock2_la-hbstock_init.lo] Error 1
make[2]: Leaving directory `/home/standard/build/hbstock_orig/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/standard/build/hbstock_orig/build'
make: *** [all] Error 2
***************************end error***************************
at this time I have not been able to resolve but I have found it is due to new adherence to ISO c++ standards by gcc4.3

Discussion

  • wirser

    wirser - 2009-02-12
    • priority: 5 --> 7
     
  • wirser

    wirser - 2009-02-19

    After confering with #gcc on freenode.net IRC I was able to get a sucessful compile using the following addition

    adding
    namespace hbstock2

    {
    before "template<>"
    and adding ")"
    after " return i_ret;

    }"

     
  • zzhb

    zzhb - 2009-12-19

    Have you installed ACE?

     

Log in to post a comment.