Skip to content

Instantly share code, notes, and snippets.

View 0x4E0x650x6F's full-sized avatar

0x4E0x650x6F 0x4E0x650x6F

View GitHub Profile
@0x4E0x650x6F
0x4E0x650x6F / build.bat
Created February 1, 2021 14:16 — forked from fsmv/build.bat
Loading and executing code directly from an obj file on Windows!
@echo off
rem Set up the Visual Studio 2013 compiler environment variables
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
cl -c lib.cpp
cl runner.cpp /link user32.lib