lhmouse / nano-win

GNU nano text editor for Windows [WARNING: The master branch is constantly rebased and force-pushed so don't expect it to be steady!! -end WARNING]
https://files.lhmouse.com/nano-win/
GNU General Public License v3.0
210 stars 25 forks source link

missing libmcfgthread-1.dll on nano 6.3 #40

Closed issaclin32 closed 2 years ago

issaclin32 commented 2 years ago

It says "missing libmcfgthread-1.dll" when starting the program. Is this a bug? Or should I also download mcfgthread?

lhmouse commented 2 years ago

looks like it is referenced indirectly. I'll have a look later today.

lhmouse commented 2 years ago

Static linking seems broken and configure decides to link against the DLL instead:

E:\lh_mouse\Desktop>gcc test.c -static
C:/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/12.0.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/12.0.1/../../../../lib\libmcfgthread.a(lib_libmcfgthread_la-win32.o):(.text+0x95): multiple definition of `memcpy'; C:/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/12.0.1/../../../../lib\libmsvcrt.a(libmsvcrt_defs01166.o):(.text+0x0): first defined here
C:/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/12.0.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/12.0.1/../../../../lib\libmcfgthread.a(lib_libmcfgthread_la-win32.o):(.text+0xd7): multiple definition of `memset'; C:/MSYS2/mingw64/lib/gcc/x86_64-w64-mingw32/12.0.1/../../../../lib\libmsvcrt.a(libmsvcrt_defs01168.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status

I am working on it now.

lhmouse commented 2 years ago

Thanks for the report. Rebuilt and uploaded as https://files.lhmouse.com/nano-win/nano-win_10020_v6.3-7-g23c4ee8c3.7z.

I have checked both x86 and x64 builds by hand and there should no longer be such errors.

issaclin32 commented 2 years ago

It works fine for me. Thank you so much for the quick response.