diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-07-05 00:26:27 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-07-05 00:26:27 +0200 |
commit | ed6bd7fd5552afc5b8633b77ba13f04da2168a75 (patch) | |
tree | 8e72b682ab079ee5d84d1b1ac2d18bce3a74242b /example-cross-compile-cpp/win.cc | |
parent | b07a942993efe44e5dbdff8088b0ed87c79fc433 (diff) | |
download | zig-playground-ed6bd7fd5552afc5b8633b77ba13f04da2168a75.tar.gz zig-playground-ed6bd7fd5552afc5b8633b77ba13f04da2168a75.zip |
cross: mini cpp cross compile using zig compiler
Diffstat (limited to 'example-cross-compile-cpp/win.cc')
-rw-r--r-- | example-cross-compile-cpp/win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/example-cross-compile-cpp/win.cc b/example-cross-compile-cpp/win.cc new file mode 100644 index 0000000..b0e701a --- /dev/null +++ b/example-cross-compile-cpp/win.cc @@ -0,0 +1,6 @@ +#include <windows.h> +#include <winuser.h> + +int main() { + MessageBoxA(nullptr, "world", "hello", 0); +} |