# Running 2-build-debug.sh finishes with errors \[Windows - export ordinal too large\]

**URL:** <https://forums.synfig.org/t/running-2-build-debug-sh-finishes-with-errors-windows-export-ordinal-too-large/13189>\
**Category:** Development\
**Tags:** windows, export\_ordinal\
**Created:** [April 28, 2022, 3:13am UTC](https://forums.synfig.org/t/running-2-build-debug-sh-finishes-with-errors-windows-export-ordinal-too-large/13189 "2022-04-28T03:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RektuiemForAMeme](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@RektuiemForAMeme](https://forums.synfig.org/u/RektuiemForAMeme)\
**Post date:** [April 28, 2022, 3:13am UTC](https://forums.synfig.org/t/running-2-build-debug-sh-finishes-with-errors-windows-export-ordinal-too-large/13189/1 "2022-04-28T03:13:33Z")

</div>

Hey so I ran 1-setup-windows-msys2.sh with mingw64 with seemingly no issue, then ran 2-build-debug.sh and it ended with errors:

```auto
  CXXLD synfigstudio.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: export ordinal too large: 73261
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:1641: synfigstudio.exe] Error 1
make[4]: Leaving directory '/d/Documents/GitProjects/Synfig/_debug/synfig-studio/src/gui'
make[3]: *** [Makefile:4089: all-recursive] Error 1
make[3]: Leaving directory '/d/Documents/GitProjects/Synfig/_debug/synfig-studio/src/gui'
make[2]: *** [Makefile:451: all-recursive] Error 1
make[2]: Leaving directory '/d/Documents/GitProjects/Synfig/_debug/synfig-studio/src'
make[1]: *** [Makefile:693: all-recursive] Error 1
make[1]: Leaving directory '/d/Documents/GitProjects/Synfig/_debug/synfig-studio'
make: *** [Makefile:529: all] Error 2

```

This is the bin folder afterwards:  
 ![image](https://forums.synfig.org/uploads/default/original/2X/8/85646234d9123252b679e05e5604d8a7aa9be00c.png)

Any idea what’s going on here? I’m on windows 10.

---

<div class="post-metadata">

**Author:** ![BobSynfig](https://forums.synfig.org/user_avatar/forums.synfig.org/bobsynfig/32/175_2.png) [@BobSynfig](https://forums.synfig.org/u/BobSynfig)\
**Post date:** [April 28, 2022, 7:39am UTC](https://forums.synfig.org/t/running-2-build-debug-sh-finishes-with-errors-windows-export-ordinal-too-large/13189/2 "2022-04-28T07:39:34Z")

</div>

Hi and welcome here 🙂  
This is a known issue at the moment for Windows (see [Error while building debug verision on windows. · Issue #2565 · synfig/synfig · GitHub](https://github.com/synfig/synfig/issues/2565))

By luck the final production compilation through morevna-build is ok.

Until this will be solved (if it can, it is a compiler’s limitation obviously, too many symbols, limit at 65535), you can still use a Linux virtual machine to do the development 😉

---

<div class="post-metadata">

**Author:** ![RektuiemForAMeme](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/76d3ee/32.png) [@RektuiemForAMeme](https://forums.synfig.org/u/RektuiemForAMeme)\
**Post date:** [April 28, 2022, 9:09am UTC](https://forums.synfig.org/t/running-2-build-debug-sh-finishes-with-errors-windows-export-ordinal-too-large/13189/3 "2022-04-28T09:09:45Z")

</div>

Aight thanks, will do. I checked the issues for this, but guess I didn’t look hard enough haha whooops. I think I saw that one and just glanced through and didn’t think it was my issue

---

<div class="post-metadata">

**Author:** ![ice0](https://forums.synfig.org/user_avatar/forums.synfig.org/ice0/32/4612_2.png) [@ice0](https://forums.synfig.org/u/ice0)\
**Post date:** [May 1, 2022, 3:45am UTC](https://forums.synfig.org/t/running-2-build-debug-sh-finishes-with-errors-windows-export-ordinal-too-large/13189/4 "2022-05-01T03:45:17Z")

</div>

Hi! Please use `2-build-msys-cmake.sh` for Windows build. This issue is present in autotools only.
