Thaaat's better, still came out with a wierd error however:
Code:
mingw32-make POE_BIT=64 -f makefile.mak (in directory: O:\Data\C_Playground\idlejp)
gcc -ggdb -Wall -I "../lua64-53/include" -I "../iup64-3.25/include" -D WIN64 -mwindows -mwin32 -municode -o src/main.c-d.o -c src/main.c -L "../lua64-53" -L "../iup64-3.25/Lua53" -L "../iup64-3.25" -llua53 -liuplua53 -liup
gcc -ggdb -Wall -I "../lua64-53/include" -I "../iup64-3.25/include" -D WIN64 -mwindows -mwin32 -municode -o src/mem.c-d.o -c src/mem.c -L "../lua64-53" -L "../iup64-3.25/Lua53" -L "../iup64-3.25" -llua53 -liuplua53 -liup
gcc -ggdb -o d-idlejp64.exe src/main.c-d.o src/mem.c-d.o -L "../lua64-53" -L "../iup64-3.25/Lua53" -L "../iup64-3.25" -llua53 -liuplua53 -liup
x:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [prj.mak:77: debug_PRJ] Error 1
Compilation failed.
Despite me having this in main.c:
Code:
# if defined( _UNICODE ) || defined( UNICODE )
# define POE_UNICODE
# endif
# ifdef POE_UNICODE
int CALLBACK wWinMain(
HINSTANCE hThis,
HINSTANCE hPrev,
LPWSTR lpCmdLine,
int iCmdShow )
# else
int CALLBACK WinMain(
HINSTANCE hThis,
HINSTANCE hPrev,
LPSTR lpCmdLine,
int iCmdShow )
# endif
Any ideas as to why it is expecting the wrong function?