Question

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'
Was it helpful?

Solution

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top