Visual Studio 2010 beta里编译C++的时候出现如下问题

by shinichi_wtn 2009-06-25 17:00

Error 1 error LNK2019: unresolved external symbol _wmain referenced in function ___tmainCRTStartup MSVCRTD.lib(wcrtexe.obj) VS2010Crash

Error 2 error LNK1120: 1 unresolved externals

解决方法

the workaround is either to rename main to wmain or alternatively change "Character Set" property (Project Properties > General) to be MBCS.

参考:http://social.msdn.microsoft.com/Forums/en-US/setupprerelease/thread/
4655a7a0-961c-4c05-a9ea-7a691ab4fb83

(仅用于Gavatar)

  Country flag

biuquote
  • Comment
  • Preview
Loading

About

shinichi_wtnI'm Shinichi_wtn

Software Engineering Manager at Microsoft

[More...]

Recent Tweets

Twitter June 19, 21:25
终于开通了,以后更方便了😊【郑渝高铁将实现全线贯通运营,北京至重庆最快6小时46分可达】 https://t.co/Vwv5lg55rm https://t.co/GwnVhC3G2m

Twitter May 4, 23:00
因为疫情,五一只能在周边爬山,天气不错 https://t.co/ZJxRHj6fux

Twitter April 17, 22:20
坡峰岭爬山 https://t.co/gevMr3dkop

Twitter March 26, 23:21
月球陨落,剧情不错,特效牛逼 https://t.co/cyoCCXzVFu

Twitter February 1, 00:19
虎年快乐! https://t.co/Dltr5IMfcn

Twitter January 1, 00:05
Happy new year 2022! https://t.co/dCUV2yhO3K

Twitter December 26, 18:18
圣诞节🎄环球城市大道看电影,国产动画《雄狮少年》还是不错的 https://t.co/yVI76EZUVC

Twitter December 24, 22:06
圣诞快乐 https://t.co/SX3QadYBHY


Follow me on twitter >>

Month List