Pergunta

I use the Tiny C Compiler and I want to use GetUserName from the WinAPI. My problem is, I don't know how to link to advapi32.dll

I get an error from tcc:

undefined symbol '_GetUserNameA@8'
Foi útil?

Solução

I explained how to create a .def file from a dll and how to compile and link with tcc here: Tiny C Compiler (TCC) and winsock?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top