# Building ROOT with CMake and Visual Studio 11.0 : failed

**URL:** <https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434>\
**Category:** ROOT\
**Created:** [January 4, 2013, 9:20am UTC](https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434 "2013-01-04T09:20:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelD](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/59ef9b/32.png) [@SamuelD](https://root-forum.cern.ch/u/SamuelD)\
**Post date:** [January 4, 2013, 9:20am UTC](https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434/1 "2013-01-04T09:20:57Z")

</div>

Hello,  
using the CMake (2.8.10.2) program I generated the ROOT project (from root\_V5.34.03.source) that I am trying to compile using Visual Studio 11.0 (OS : windows 7). After having solved the “sehmap.h” issue (see [url][Locate like command](https://root-forum.cern.ch/t/locate-like-command/65/1) here is the compilation error I encountered :

```auto
------ Début de la régénération globale (Begining of global regeneration): Projet : genmap, Configuration : Debug Win32 ------
c:\PFiles\root_v5.34.03.source\root\cint\cint\src\dict\iccstrm.cxx(235): error C2248: 'std::ios_base::ios_base' : impossible d'accéder à private membre déclaré(e) dans la classe (cannot acces to private member in class) 'std::ios_base'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xiosbase(650) : voir la déclaration de (see declaration of) 'std::ios_base::ios_base'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xiosbase(202) : voir la déclaration de (see declaration of) 'std::ios_base'
```

Sam

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 7, 2013, 8:08am UTC](https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434/2 "2013-01-07T08:08:15Z")

</div>

Hi Sam,

Visual Studio 11.0 is not supported, the latest supported version is Visual Studio 10.0

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![SamuelD](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/59ef9b/32.png) [@SamuelD](https://root-forum.cern.ch/u/SamuelD)\
**Post date:** [January 7, 2013, 8:47am UTC](https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434/3 "2013-01-07T08:47:10Z")

</div>

Hello Bertrand,  
I know that Visual Studio 2012 is not supported but I cannot do in another way. I understand that if I use VS2012 errors that occure concerning VS2012 are my problem. But in this case I think that their is a call to the constructor of ios\_base class in the iccstrm.cxx file which is not allowed by the standard c++ library.

```auto
static int G __G__ stream_6_7_1(G __value* result7, G__ CONST char* funcname, struct G__param* libp, int hash)

{
   ios_base* p;	
   void* tmp = (void*) G__int(libp->para[0]);
   p = new ios_base(*(ios_base*) tmp);
   result7->obj.i = (long) p;
   result7->ref = (long) p;
   result7->type = 'u';
   result7->tagnum = G__get_linked_tagnum(&G__G__streamLN_ios_base);
   return(1 || funcname || hash || result7 || libp) ;
}
```

Maybe I’m wrong and in this case sorry.  
Thanks for your support.  
Sam

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 7, 2013, 9:33am UTC](https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434/4 "2013-01-07T09:33:18Z")

</div>

Sam,

A lot of changes are required in CINT to be compatible with Visual C++ 11.0, especially concerning their stl implementation, and there is no plan to change anything in CINT. This will be solved once cling is fully supported on Windows (no time scale though…)

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![SamuelD](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/59ef9b/32.png) [@SamuelD](https://root-forum.cern.ch/u/SamuelD)\
**Post date:** [January 7, 2013, 11:49am UTC](https://root-forum.cern.ch/t/building-root-with-cmake-and-visual-studio-11-0-failed/15434/5 "2013-01-07T11:49:09Z")

</div>

OK. Thank you for time passed on that subject and for your explanations.  
Sam
