[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation help needed, jana 0.4.9
Hi All,
Thanks Blake. That's my experience too. I think this is a problem
that occurs with gcc 4.3.2 which comes with Fedora 10 (and I'm sure
others). I am getting ready to post jana 0.5.0 which includes this fix
as well as some other bug fixes and feature enhancements. Some testing
will need to be done first though since there are significant changes.
It should be out later next week.
Regards,
-David
Blake Leverington wrote:
> Hi Mark,
>
> I got that same error with jana 0.4.9, so I had to go into
> JCalibration.h and add
>
> #include <typeinfo>
>
> and then it all compiled.
>
> -Blake
>
> Mark M. Ito wrote:
>> David,
>>
>> Looking at the environment set up file on the cue it looks like I
>> should use jana 0.4.9. I get the following error trying to compile:
>>
>> g++ -I. -I.. -I/usr/local/jana/jana_0.4.9/src/../include
>> -I/usr/local/xerces-c/prod/include
>> -I/usr/local/xerces-c/prod/include/xercesc -I/usr/include/mysql -g
>> -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>> --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables
>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>> -fno-strict-aliasing -fwrapv -fPIC -O2 -Wall -c -o JCalibration.o
>> JCalibration.cc
>> In file included from JCalibration.cc:17:
>> JCalibration.h: In member function ‘bool
>> jana::JCalibration::Get(std::string, std::map<std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >, T,
>> std::less<std::basic_string<char, std::char_traits<char>,
>> std::allocator<char> > >, std::allocator<std::pair<const
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> >, T> > >&)’:
>> JCalibration.h:132: error: must #include <typeinfo> before using typeid
>> JCalibration.h: In member function ‘bool
>> jana::JCalibration::Get(std::string, std::vector<T,
>> std::allocator<_CharT> >&)’:
>> JCalibration.h:173: error: must #include <typeinfo> before using typeid
>> JCalibration.h: In member function ‘bool
>> jana::JCalibration::Get(std::string,
>> std::vector<std::map<std::basic_string<char, std::char_traits<char>,
>> std::allocator<char> >, T, std::less<std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > >,
>> std::allocator<std::pair<const std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >, T> > >,
>> std::allocator<std::map<std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >, T,
>> std::less<std::basic_string<char, std::char_traits<char>,
>> std::allocator<char> > >, std::allocator<std::pair<const
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> >, T> > > > >&)’:
>> JCalibration.h:231: error: must #include <typeinfo> before using typeid
>> JCalibration.h: In member function ‘bool
>> jana::JCalibration::Get(std::string, std::vector<std::vector<T,
>> std::allocator<_CharT> >, std::allocator<std::vector<T,
>> std::allocator<_CharT> > > >&)’:
>> JCalibration.h:290: error: must #include <typeinfo> before using typeid
>> JCalibration.h: In member function ‘bool
>> jana::JCalibration::Get(std::string, const T*&)’:
>> JCalibration.h:332: error: must #include <typeinfo> before using typeid
>> JCalibration.h:342: error: must #include <typeinfo> before using typeid
>> JCalibration.h: In member function
>> ‘jana::JCalibration::containerType_t
>> jana::JCalibration::TrycontainerType(std::string)’:
>> JCalibration.h:397: error: must #include <typeinfo> before using typeid
>> JCalibration.h:398: error: must #include <typeinfo> before using typeid
>> JCalibration.h:399: error: must #include <typeinfo> before using typeid
>> JCalibration.h:400: error: must #include <typeinfo> before using typeid
>> JCalibration.cc: In member function ‘void
>> jana::JCalibration::DumpCalibrationsToFiles(std::string)’:
>> JCalibration.cc:250: warning: ignoring return value of ‘char*
>> getcwd(char*, size_t)’, declared with attribute warn_unused_result
>> JCalibration.cc:251: warning: ignoring return value of ‘int
>> chdir(const char*)’, declared with attribute warn_unused_result
>> JCalibration.cc:252: warning: ignoring return value of ‘char*
>> getcwd(char*, size_t)’, declared with attribute warn_unused_result
>> JCalibration.cc:253: warning: ignoring return value of ‘int
>> chdir(const char*)’, declared with attribute warn_unused_result
>> make[3]: *** [JCalibration.o] Error 1
>> rm JApplication.o
>> make[3]: Leaving directory `/usr/local/jana/jana_0.4.9/src/JANA'
>> make[2]: *** [install] Error 2
>>
>>
>> -- Mark
>>
>>
>
--
------------------------------------------------------------------------
David Lawrence Ph.D.
Staff Scientist Office: (757)269-5567 [[[ [ [ [
Jefferson Lab Pager: (757)584-5567 [ [ [ [ [ [
http://www.jlab.org/~davidl davidl@jlab.org [[[ [[ [[ [[[
------------------------------------------------------------------------