Hi Tim,
Many thanks for your help. This compiles now. I think I must not have something else defined, though, because when I run the program I still get a message saying wtmpnam is not implemented. Do I have to do something else to "register" the function?
No, you've just got a typo:
-@ stub _wtmpnam #(ptr) +@ cdecl wtmpnam(ptr) MSVCRT_wtmpnam
You removed an underscore from the _wtmpnam function. Don't, and the function should be called. --Juan