I’m trying to compile my game to an exe. I’m using:
gcc -O3 -o main -std=c11 -I out out/main.c -lhl -llibhl -lopenal -lui -lfmt -lsdl -Llibs -I hashlinkSRC
But it fails with:
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\spenl\AppData\Local\Temp\ccCEbd6d.o:main.c:(.text+0x4f7a6): undefined reference to `__imp_SymFromAddrW'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\spenl\AppData\Local\Temp\ccCEbd6d.o:main.c:(.text+0x4f7ee): undefined reference to `__imp_SymGetLineFromAddrW64'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\spenl\AppData\Local\Temp\ccCEbd6d.o:main.c:(.text+0x4f854): undefined reference to `__imp_SymSetOptions'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\spenl\AppData\Local\Temp\ccCEbd6d.o:main.c:(.text+0x4f869): undefined reference to `__imp_SymInitialize'
Anyone know how to fix this? I’m compiling from windows.