Hi Konstantin,

The first problem is my fault. I need to look back and see how we
handled this in OB 2.2.3. As far as I know, we don't need boost for
GCC4.x, but now we require it for GCC3.x. So USE_BOOST should be false
for GCC 4.x. I will add the corresponding logic to CMakeLists.txt. In
the meanwhile, just use -DUSE_BOOST=OFF

- Noel

On 12 March 2010 10:05, Konstantin Tokarev <[email protected]> wrote:
> Hello!
> Recently I've found OB can't be compiled with GCC 4.4 and Boost enabled 
> because of redefinition of unordered_map in unique.cpp
> I propose to make custom header "unordered_map.h" to prevent different 
> conditions in different files, e.g.
> #ifdef _MSC_VER
>  #include <unordered_map>
> #elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
>  #include <tr1/unordered_map>
> #else
>  #ifdef USE_BOOST
>    #include <boost/tr1/unordered_map.hpp>
>  #else
>    #define NO_UNORDERED_MAP
>    #include <map>
>  #endif
> #endif
>
> and check for NO_UNORDERED_MAP later
> Also, in obmolecformat.h  <hash_map> is used for MSVC. Are both variants 
> (hash_map and unordered_map) available for all versions? I think hash_map is 
> older
> Also, I think we should prepare for c++0x standard (last time I tried to 
> compile OB with c++0x compilation failed with lots of errors)
>
> --
> Regards,
> Konstantin
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> OpenBabel-Devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbabel-devel
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to