TinyCC-Win(HelloWorld)

作者:清风拂面 | 创建时间: 2023-08-11
TinyCC编译MessageBox版HelloWorld...
TinyCC-Win(HelloWorld)

操作方法

源码: #include <windows.h>void main (void){    MessageBox (0, "text", "cap", MB_ICONINFORMATION);} 保存到喜欢的位置,这里放桌面了"E:\Desktop"

编译GUI版: tcc msg.c -luser32 -Wl,-subsystem=gui

编译控制台版: tcc msg.c -luser32或者 tcc msg.c -luser32 -Wl,-subsystem=console

温馨提示

没有-luser32报错:tcc: error: undefined symbol 'MessageBoxA'
作者声明:本篇经验系本人依照真实经历原创,未经许可,欢迎转载。
点击展开全文

更多推荐