# FFT demo error in 6.27 binary (win 10)

**URL:** <https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669>\
**Category:** Newbie\
**Created:** [December 6, 2022, 7:46pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669 "2022-12-06T19:46:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![shu11](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@shu11](https://root-forum.cern.ch/u/shu11)\
**Post date:** [December 6, 2022, 7:46pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/1 "2022-12-06T19:46:49Z")

</div>

Hi,

Here is the screen capture and error message. ROOT is a binary and fftw3 is enabled in the binary build. After this error, ROOT just exited. Is the problem in the binary build? Can someone confirm?

* * *

| Welcome to ROOT 6.27/01 [https://root.cern](https://root.cern) |  
| (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |  
| Built for win64 on Dec 01 2022, 03:49:00 |  
| From remotes/origin/master@v6-25-02-2898-g8f72f53fbf |  
| With MSVC 19.32.31332.0 |

| Try ‘.help’/‘.?’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/‘.q’ |
| --- |

root [0] .L …/tutorials/fft/FFT.C  
root [1] FFT()  
cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.  
Error in TInterpreter::TCling::AutoLoad: failure loading library libFFTW.dll for TFFTRealComplex  
cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.  
Error in TVirtualFFT::FFT: handler not found

---

<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:** [December 6, 2022, 8:36pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/2 "2022-12-06T20:36:33Z")

</div>

You’re right. We don’t distribute the fftw3 DLLs (they are not part of ROOT). But you can download them from the web. See [FFTW Installation on Windows](http://www.fftw.org/install/windows.html)

---

<div class="post-metadata">

**Author:** ![shu11](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@shu11](https://root-forum.cern.ch/u/shu11)\
**Post date:** [December 6, 2022, 10:42pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/3 "2022-12-06T22:42:23Z")

</div>

But this binary has ffw3:

\root\bin\>root-config --has-fftw3  
yes

Do you mean the actual ffw3 DLL?

Thanks

---

<div class="post-metadata">

**Author:** ![shu11](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@shu11](https://root-forum.cern.ch/u/shu11)\
**Post date:** [December 6, 2022, 11:01pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/4 "2022-12-06T23:01:03Z")

</div>

I read some of your previous answers to FFW3. Seems like I need to rebuild ROOT after downloading FFTW3. Can’t use the binary build. Even I set PATH variable to include the FFTW3 directory won’t get rid of the error.

---

<div class="post-metadata">

**Author:** ![shu11](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@shu11](https://root-forum.cern.ch/u/shu11)\
**Post date:** [December 6, 2022, 11:49pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/5 "2022-12-06T23:49:09Z")

</div>

Ok, an update: After setting PATH to point to FFTW3, the FFTW3 library actual works. But just the FFT.C doesn’t work because it uses libFFTW.lib but has a different file name in the downloaded FFTW3 library. I rewrote a simple FFTW3 example inside ROOT and it worked.

Thanks anyway

---

<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:** [December 7, 2022, 7:50am UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/6 "2022-12-07T07:50:52Z")

</div>

You’re mixing the `fftw3-3.dll` (from fftw3) and `libFFTW.dll` (from ROOT). You need both of them (`libFFTW.dll` depends on `fftw3-3.dll`) in your PATH. And the `.lib` files are only needed when linking against it, which is not your case.

---

<div class="post-metadata">

**Author:** ![shu11](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@shu11](https://root-forum.cern.ch/u/shu11)\
**Post date:** [December 7, 2022, 5:55pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/7 "2022-12-07T17:55:02Z")

</div>

Hmm… that probably is not the case because I did have both libFFTW.dll (under root/bin) and fftw3-3.dll included in the PATH. For some reason, just can’t load libFFTW.dll.

root [0] .L …/tutorials/fft/FFT.C  
root [1] FFT()  
cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.  
Error in TInterpreter::TCling::AutoLoad: failure loading library libFFTW.dll for TFFTRealComplex  
cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: The specified module could not be found.  
Error in TVirtualFFT::FFT: handler not found

---

<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:** [December 7, 2022, 6:58pm UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/8 "2022-12-07T18:58:27Z")

</div>

Did you take the 64 bit version of fftw3-3.dll?

---

<div class="post-metadata">

**Author:** ![shu11](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@shu11](https://root-forum.cern.ch/u/shu11)\
**Post date:** [December 8, 2022, 12:19am UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/9 "2022-12-08T00:19:15Z")

</div>

Yes, I did take the 64-bit ffw3-3.dll, like shown in your link

---

<div class="post-metadata">

**Author:** ![CIAE](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/d07c76/32.png) [@CIAE](https://root-forum.cern.ch/u/CIAE)\
**Post date:** [March 3, 2023, 1:19am UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/10 "2023-03-03T01:19:09Z")

</div>

I have a similar issue, but cling::DynamicLibraryManager::loadLibrary(): LoadLibrary: returned 126: ×9

---

<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:** [March 3, 2023, 7:22am UTC](https://root-forum.cern.ch/t/fft-demo-error-in-6-27-binary-win-10/52669/11 "2023-03-03T07:22:01Z")

</div>

> [@CIAE](#):
>
> returned 126: ×9

What do you mean? Can you copy and paste the error messages you get, and give more details? And please don’t reply to an old topic, but open a new one
