Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Tiny C 编译器,我想GetUserName从 WinAPI 中使用。我的问题是,我不知道如何链接到advapi32.dll
GetUserName
advapi32.dll
我从 tcc 收到一个错误:
undefined symbol '_GetUserNameA@8'
我在这里解释了如何从 dll 创建 .def 文件以及如何编译和链接 tcc: Tiny C Compiler (TCC) and winsock?