Like this :
#ifndef API_KEY_VAULT
#define API_KEY_VAULT
#include <string>
using namespace std;Based on some tinkering I was doing with qemu for some ARM dev, I think I may have found a technique to allow general 32-bit support in WSL. Hat-tip to @therealkenc for the concept 😁
Edit: requires "Fall Creators Update", 1709, build 16299 or newer (I think)
Presuming a fresh Ubuntu WSL instance, you'll need to install the qemu-user-static package, add the i386 binfmt, enable the i386 architecture, update your package lists, and install some i386 packages:
Install qemu and binfmt sudo apt update sudo apt install qemu-user-static
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2] | |
| @="Open MSYS2 here" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2\command] | |
| @="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'" | |
| [HKEY_CLASSES_ROOT\Folder\shell\open_msys2] | |
| @="Open MSYS2 here" |
| { | |
| "cmd": ["g++", "./*.cpp", "-o", "${file_base_name}.exe"], | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "working_dir": "${file_path}", | |
| "selector": "source.c, source.c++", | |
| "variants": | |
| [ | |
| { | |
| "name": "Run(native)", | |
| "cmd": ["git-bash", "-c", "./${file_base_name}.exe;echo -e '\\e[0;32m- press any key to continue -';read;"], |