Skip to content

Instantly share code, notes, and snippets.

@K4zuki
Last active July 21, 2017 04:55
Show Gist options
  • Save K4zuki/49ac45e419b2b74c774524b5f49b9e91 to your computer and use it in GitHub Desktop.
Save K4zuki/49ac45e419b2b74c774524b5f49b9e91 to your computer and use it in GitHub Desktop.
cross compilation for gpp

Environment

  • Ubuntu16.04

Commands

  • get gpp-2.25tar.bz archive from https://github.com/logological/gpp/releases
  • $ tar jxf gpp-2.25.tar.bz2 extracts gpp-2.25 directory
  • $ sudo apt-get install mingw-w64 git-core wget quilt
  • $ cd gpp-2.25
  • $ ./configure --host=x86_64-w64-mingw32
  • $ make
  • upload src/gpp.exe to somewhere
$ file ./gpp.exe 
./gpp.exe: PE32+ executable (console) x86-64, for MS Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment