Well that sorta worked, had to move the sub directory contents to the main directory after MinGW64's installation so gcc could be found, then gcc itself decided to crash but after switching to an alternative name for it (x86_64-w64-mingw32-gcc) I got to the compilation stage but now it's throwing a strange segmentation error:
Code:
O:\Data\C_Playground\lake\run_gcc.bat (in directory: O:\Data\C_Playground\lake)
...
O:\Data\C_Playground\lake>set PATH=O:\Common\MinGW64\bin;X:\PortableApps\GeanyPortable\App\Geany\bin;X:\PortableApps\GeanyPortable\App\Geany\bin;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;A:\Tools\WinSDK\10\Windows Performance Toolkit\;C:\Users\awsde_000\AppData\Local\Microsoft\WindowsApps;
...
O:\Data\C_Playground\lake>set OBJS=
O:\Data\C_Playground\lake>set SRCS=lake.c
O:\Data\C_Playground\lake>cd O:\Data\C_Playground\lake\
O:\Data\C_Playground\lake>for %i in (lake.c) do (
set OBJS= %i.o
x86_64-w64-mingw32-gcc -Wall -mconsole -mwindows -llua53 -o %i.o %i
)
O:\Data\C_Playground\lake>(
set OBJS= lake.c.o
x86_64-w64-mingw32-gcc -Wall -mconsole -mwindows -llua53 -o lake.c.o lake.c
)
lake.c: In function 'LakeCopy':
lake.c:498:2: internal compiler error: Segmentation fault
case ERROR_FILE_NOT_FOUND: code = ENOENT; break;
^~~~
libbacktrace could not find executable to open
...
Any ideas?