Cross Compilation

For 32 bit executable:

  1. C source: i686-w64-mingw32-gcc adduser.c -o adduser.exe

  2. CPP source: i686-w64-mingw32-g++ adduser.cpp -o adduser.exe

For 64 bit executable:

  1. C source: X86_64-w64-mingw32-gcc adduser.c -o adduser.exe

  2. CPP source: X86_64-w64-mingw32-g++ adduser.cpp -o adduser.exe

Last updated