I’m trying to use CRT function getenv() in my Win 7 – 64 driver. The linker gives me an error: LNK2019: unresolved external symbol… My VS2010 project already statically links in the CRT (/MTd), but for some reason, getenv() is not included. If I link in MSVCRT.LIB from the WinDDK, the driver will link, but it won’t run.
I’ve been reading through some of the “msvcrt dll hell” articles on the web. Some of the workarounds they suggest seem very cumbersome. I can see that other BazisLib functions already use getenv() as well as many other CRT functions. So, I suspect that this issue must have already been resolved by somebody.
Thanks in advance for any assistance.