[espeak-ng:master] new issue: Getting some linker issues when trying to build for msys2 environment #github


espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Issue Created by ArrSeaJay:
#879 Getting some linker issues when trying to build for msys2 environment

I get some linker issues when building for the msys2 environment for windows. I know that's not officially supported but maybe you have some clue what's going wrong. Building the library does work though (at least a static .a lib).

CXXLD src/speak-ng.exe C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in function PrintVersion': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:300: undefined reference toimp_espeak_Initialize' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:301: undefined reference to __imp_espeak_Info' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in functionmain': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:449: undefined reference to __imp_strncpy0' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:515: undefined reference toimp_utf8_in' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:524: undefined reference to __imp_utf8_in' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:530: undefined reference toimp_espeak_ng_InitializePath' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:532: undefined reference to __imp_espeak_ng_CompileMbrolaVoice' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:467: undefined reference toimp_espeak_Initialize' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in function DisplayVoices': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:156: undefined reference toimp_espeak_ListVoices' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in function main': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:389: undefined reference toimp_strncpy0' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:415: undefined reference to __imp_strncpy0' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:430: undefined reference toimp_strncpy0' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:434: undefined reference to __imp_strncpy0' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:542: undefined reference toimp_espeak_ng_InitializePath' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:544: undefined reference to __imp_espeak_ng_CompileIntonation' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:634: undefined reference toimp_espeak_ng_PrintStatusCodeMessage' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:635: undefined reference to __imp_espeak_ng_ClearErrorContext' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:554: undefined reference toimp_espeak_ng_InitializePath' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:558: undefined reference to __imp_espeak_ng_CompilePhonemeDataPath' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:577: undefined reference toimp_espeak_ng_InitializePath' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:579: undefined reference to __imp_espeak_ng_Initialize' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:603: undefined reference toimp_espeak_ng_InitializeOutput' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:604: undefined reference to __imp_espeak_ng_GetSampleRate' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:618: undefined reference toimp_espeak_ng_SetVoiceByName' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:643: undefined reference to __imp_espeak_SetParameter' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:645: undefined reference toimp_espeak_SetParameter' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:647: undefined reference to __imp_espeak_SetParameter' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:649: undefined reference toimp_espeak_SetParameter' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:651: undefined reference to __imp_espeak_SetParameter' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o:C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:653: more undefined references toimp_espeak_SetParameter' follow C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in function main': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:659: undefined reference toimp_espeak_SetPhonemeTrace' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:691: undefined reference to __imp_espeak_Synth' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:752: undefined reference toimp_espeak_ng_Synchronize' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:762: undefined reference to __imp_espeak_ng_Terminate' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:588: undefined reference toimp_espeak_ng_InitializeOutput' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:589: undefined reference to __imp_espeak_ng_GetSampleRate' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:592: undefined reference toimp_espeak_SetSynthCallback' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:616: undefined reference to __imp_espeak_ng_SetVoiceByFile' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:560: undefined reference toimp_espeak_ng_CompilePhonemeData' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in function DisplayVoices': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:154: undefined reference toimp_espeak_ListVoices' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/speak-ng.o: in function main': C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:632: undefined reference toimp_espeak_ng_CompileDictionary' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:622: undefined reference to __imp_espeak_ng_SetVoiceByProperties' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:754: undefined reference toimp_espeak_ng_PrintStatusCodeMessage' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:677: undefined reference to __imp_GetFileLength' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:746: undefined reference toimp_espeak_Synth' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:657: undefined reference to __imp_espeak_SetPunctuationList' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:733: undefined reference toimp_espeak_Synth' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:703: undefined reference to __imp_espeak_Synth' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:740: undefined reference toimp_espeak_ng_PrintStatusCodeMessage' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:581: undefined reference to __imp_espeak_ng_PrintStatusCodeMessage' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ralf\espeak-ng/src/espeak-ng.c:582: undefined reference toimp_espeak_ng_ClearErrorContext' collect2.exe: error: ld returned 1 exit status

Join espeak-ng@groups.io to automatically receive all group messages.