Build clang -o main.exe main.c Build with AddressSanitizer clang -fsanitize=address -o debug/main.exe main.c Build DLL clang -shared -fuse-ld=lld -o main.dll main.c Build DLL with exports/imports from .def file clang -shared -fuse-ld=lld -Xlinker /def:main.def -o main.dll main.cpp