2

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'
Keith Thompson
  • 254,901
  • 44
  • 429
  • 631
binary
  • 25
  • 1
  • 4

1 Answers1

2

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?

Community
  • 1
  • 1
stacker
  • 68,052
  • 28
  • 140
  • 210