# rootlogon.C 6.10.06

**URL:** <https://root-forum.cern.ch/t/rootlogon-c-6-10-06/26557>\
**Category:** Cling\
**Created:** [October 12, 2017, 1:48pm UTC](https://root-forum.cern.ch/t/rootlogon-c-6-10-06/26557 "2017-10-12T13:48:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OSchaile](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/e495f1/32.png) [@OSchaile](https://root-forum.cern.ch/u/OSchaile)\
**Post date:** [October 12, 2017, 1:48pm UTC](https://root-forum.cern.ch/t/rootlogon-c-6-10-06/26557/1 "2017-10-12T13:48:43Z")

</div>

Dear Rooters,  
the following rootlogon.C worked with root 5 (CINT):

```auto
{	
//	#include "mca8000.h"
//{
	gROOT->ProcessLine(".L mca8000.cxx+");
//}
//{
//	gSystem->Load("mca8000_cxx.so");
//}
	MCA8000 *mca = new MCA8000();
}

```

It works line by line at the root prompt.  
I tried different things (see commented lines), no success

Thanks for help  
Otto

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [October 12, 2017, 2:11pm UTC](https://root-forum.cern.ch/t/rootlogon-c-6-10-06/26557/2 "2017-10-12T14:11:04Z")

</div>

Hi Otto,

Try this in ROOT 6:

```auto
R__LOAD_LIBRARY(mca8000.cxx+)

void rootlogon() {	
	MCA8000 *mca = new MCA8000();
}

```

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![OSchaile](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/o/e495f1/32.png) [@OSchaile](https://root-forum.cern.ch/u/OSchaile)\
**Post date:** [October 12, 2017, 3:25pm UTC](https://root-forum.cern.ch/t/rootlogon-c-6-10-06/26557/3 "2017-10-12T15:25:26Z")

</div>

Hi Axel,  
thanks, it works  
Otto

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 26, 2017, 3:25pm UTC](https://root-forum.cern.ch/t/rootlogon-c-6-10-06/26557/4 "2017-10-26T15:25:43Z")

</div>

Closed on October 26, 2017, 3:25pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
