# Using a compiler (mingw/ gcc)

**URL:** <https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129>\
**Category:** Dynamic link\
**Created:** [August 6, 2023, 10:47pm UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129 "2023-08-06T22:47:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javo](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@Javo](https://scilab.discourse.group/u/Javo)\
**Post date:** [August 6, 2023, 10:47pm UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129/1 "2023-08-06T22:47:40Z")

</div>

Hi, I have installed gcc V10.3 as described in some post, installed it and then installed MinGW toolbox. But when strating Scilab “WARNING: MinGW Compiler not detected.”  
I copied all kind of paths in the path-variable of windows… Nothing works!  
What should I do?

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [August 9, 2023, 4:57pm UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129/2 "2023-08-09T16:57:57Z")

</div>

Did you logoff/login windows after installiing the Gcc package ?

---

<div class="post-metadata">

**Author:** ![Javo](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@Javo](https://scilab.discourse.group/u/Javo)\
**Post date:** [August 12, 2023, 11:52am UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129/3 "2023-08-12T11:52:58Z")

</div>

Yes, even restarted…

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [August 23, 2023, 2:08pm UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129/4 "2023-08-23T14:08:24Z")

</div>

Hello,

I can give you a temporary solution before the package is updated. At the installation the gcc package used to define the `EQ_LIBRARY_PATH` environment variable and it may possible that recent version don’t do it any more. I suggest to do it using the method described at the following URL: [Set Environment Variable in Windows {How-To} | phoenixNAP KB](https://phoenixnap.com/kb/windows-set-environment-variable) using the " Set Environment Variable in Windows via GUI" method. The value of `EQ_LIBRARY_PATH` should be

```auto
C:\users\login\gcc\x86_64-w64-mingw32\lib

```

where `login` has to be replaced by yours and drive letter should be eventualy changed. Once the environment variable has been defined I suggest that you logout/login before restarting Scilab.

S.

---

<div class="post-metadata">

**Author:** ![Javo](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@Javo](https://scilab.discourse.group/u/Javo)\
**Post date:** [August 24, 2023, 3:09pm UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129/5 "2023-08-24T15:09:30Z")

</div>

Now it is working! Thanks a lot for your help!!! 😀 👏

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [August 25, 2023, 8:17am UTC](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129/6 "2023-08-25T08:17:04Z")

</div>

A new version of MinGW toolbox has been released:

> **[Scilab Module : MinGw toolbox](https://atoms.scilab.org/toolboxes/mingw/10.3.1)**
>
> Dynamic link with MinGW for Scilab on Windows

Starting from this version, detection of the Equation Solutions Gcc package will work out-of-the-box.

S.
