错误LNK2001:未解析的外部符号_getenv [英] error LNK2001: unresolved external symbol _getenv
本文介绍了错误LNK2001:未解析的外部符号_getenv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我正在尝试在VSTS 2013中构建MuPDF VC ++ VSTS 2012解决方案,但收到错误" ; 错误LNK2001:未解析的外部符号_getenv " 。
I am trying to build the MuPDF VC++ VSTS 2012 solution in VSTS 2013 but getting error "error LNK2001: unresolved external symbol _getenv" .
此解决方案在VSTS 2012中成功构建,但是当我将其打开到VSTS 2013并尝试构建它时会抛出错误。
This solution is builds successfully in VSTS 2012 but when I open it into VSTS 2013 and try to build it is throwing error.
请提供任何帮助
Please provide any help upon it
推荐答案
你能在VS 2013中制作一个小型测试项目并构建这个程序吗?
Can you make a small test project in VS 2013 and build this program?
#include <cstdio>
#include <cstdlib>
int main()
{
printf ("Hello %s\n", getenv("USERNAME"));
return 0;
}
- pa
这篇关于错误LNK2001:未解析的外部符号_getenv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文