# Problem when compiling macros with root\_v6.14 under Windows 10

**URL:** <https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519>\
**Category:** ROOT\
**Created:** [June 25, 2018, 12:27pm UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519 "2018-06-25T12:27:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtakacs](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@mtakacs](https://root-forum.cern.ch/u/mtakacs)\
**Post date:** [June 25, 2018, 12:27pm UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/1 "2018-06-25T12:27:44Z")

</div>

Hi everyone,

After installing the windows version of root 6.14 on my PC, I tried to compile one of my macro files, but I ran into a strange error message:

```auto
C:\WINDOWS\System32\KERNEL32.DLL : fatal error LNK1107: invalid or corrupt file: cannot read at location 0x2F0.Error in ACLiC: Compilation failed!

```

If I only use the interpreter mode, the macro runs fine.

Has anyone seen such error message in relation with root 6.14 on windows?

Thanks,  
Marcell

* * *

_ROOT Version:_ 6.14  
_Platform:_ Windows 10  
_Compiler:_ Visual studio 2017

* * *

---

<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:** [June 26, 2018, 9:21am UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/2 "2018-06-26T09:21:01Z")

</div>

Hi,

> [@mtakacs](#):
>
> I tried to compile one of my macro files, but I ran into a strange error message:

How did you compile it?

---

<div class="post-metadata">

**Author:** ![mtakacs](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@mtakacs](https://root-forum.cern.ch/u/mtakacs)\
**Post date:** [June 26, 2018, 10:46am UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/3 "2018-06-26T10:46:25Z")

</div>

Just the usual way:

> .L macro.C+

---

<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:** [June 26, 2018, 11:13am UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/4 "2018-06-26T11:13:56Z")

</div>

OK, that’s weird… Could you attach the full log? And I suppose you run in a `x86 Native Tools Command Prompt for VS2017`, right?

---

<div class="post-metadata">

**Author:** ![mtakacs](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@mtakacs](https://root-forum.cern.ch/u/mtakacs)\
**Post date:** [June 27, 2018, 7:20am UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/5 "2018-06-27T07:20:47Z")

</div>

Yes, I am running Root from the y86 Native Tools prompt.

Here is the full log (sorry for the partly German messages):

> D:\M36\test\>root -l  
> root [0] .L SoftKAM\_v9\_9\_3.C+  
> Info in TWinNTSystem::ACLiC: creating shared library D:/M36/test/SoftKAM\_v9\_9\_3\_C.dll  
> SoftKAM\_v9\_9\_3\_C\_ACLiC\_dict.cxx  
> D:/M36/test/SoftKAM\_v9\_9\_3.C(890): warning C4101: “scale”: Unreferenzierte lokale Variable  
> D:/M36/test/SoftKAM\_v9\_9\_3.C(905): warning C4101: “TDiffBetaGamma”: Unreferenzierte lokale Variable  
> Bibliothek “D:/M36/test\SoftKAM\_v9\_9\_3\_C.lib” und Objekt “D:/M36/test\SoftKAM\_v9\_9\_3\_C.exp” werden erstellt.  
> C:\WINDOWS\System32\KERNEL32.DLL : fatal error LNK1107: Ungültige oder beschädigte Datei: Lesen bei 0x2F0 nicht möglich.  
> Error in : Compilation failed!  
> root [1]

The code sucessfully creates the .lib and .exp files, then comes the above mentioned error message (in German), and then the compiler fails.

---

<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:** [June 27, 2018, 7:31am UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/6 "2018-06-27T07:31:37Z")

</div>

Thanks for the log. And sorry, but I’ve never seen such problem… I’ll try to guess what could be the issue and come back to you

---

<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:** [July 11, 2018, 7:31am UTC](https://root-forum.cern.ch/t/problem-when-compiling-macros-with-root-v6-14-under-windows-10/29519/7 "2018-07-11T07:31:37Z")

</div>

Closed on July 11, 2018, 7:31am UTC

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