- priority: 5 --> 7
while trying to compile hstock on ffedora9 86_64 (gcc 4.3) the following error was encountered
mv -f .deps/libhbstock2_la-stock_kline.Tpo .deps/libhbstock2_la-stock_kline.Plo
/bin/sh ../libtool --tag=CXX --mode=compile 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 -o libhbstock2_la-hbstock_init.lo `test -f 'hbstock_init.cpp' || echo '../../src/'`hbstock_init.cpp
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***************
adding "#include <typeinfo>" corrects this error