MSVCRT.lib(wcrtexew.obj) : error LNK2019: unresolved external symbol wWinMain referenced in function
来源:互联网 发布:中国最流行的编程语言 编辑:程序博客网 时间:2024/05/17 23:50
问题:
4>Link:4> Creating library C:\SVN\branches\giuseppe\build\x64\Release\Karatsuba.lib and object C:\SVN\branches\giuseppe\build\x64\Release\Karatsuba.exp4>MSVCRT.lib(wcrtexew.obj) : error LNK2019: unresolved external symbol wWinMain referenced in function __tmainCRTStartup4>C:\SVN\branches\giuseppe\build\x64\Release\Karatsuba.exe : fatal error LNK1120: 1 unresolved externals
解答:
Hello, I think you get this error because the entry point of this application is not correct . As far as I know , in Visual Studio there are two kinds of *.exe binaries, a windows application and a console application. For developers, the main difference between Windows Application and Console Application is that the former's entry point is WinMain() or wWinMain(), whereas the latter's entry point is main() or wmain(). To solve the problem , you can try as follows : First ,check the SubSystem (Project->Properties->Configuration Properties->Linker->System->SubSystem) to verify it is set as Console (/SUBSYSTEM:CONSOLE) or Windows(/SUBSYSTEM:WINDOWS) . If the subsystem is console , make sure that your entry point is main or wmain . Or you can set the entry point as you like . Project->Properties->Configuration Properties->Linker->Advanced->Entry Point and add the "main"(here I mean entry point) function's name here . Otherwise , make sure the entry point is WinMain or wWinMain . You had better not change the entry point yourself . At last remember to rebuild the project and run it . So please try as what is said above . If you have any concerns , please feel free to let me know .
Best regards ,
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- MSVCRT.lib(wcrtexew.obj) : error LNK2019: unresolved external symbol wWinMain referenced in function
- MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in functi
- MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___
- mfc程序报错libcmt.lib(crt0.obj) : error LNK2019: unresolved external symbol main referenced in function
- MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in funct
- MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in funct
- MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in funct
- Driver.obj : error LNK2019: unresolved external symbol __except_handler4 referenced in function "lon
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
- 转载:error LNK2019: unresolved external symbol __GSHandlerCheck referenced in function
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartu
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019: unresolved external symbol _WinMain referenced in function _WinMainCRTStartup
- error LNK2019: unresolved external symbol __imp__inet_ntoa@4 referenced in function
- 几秒前,几分钟前,几小时前,几天前,几月前,几年前的java实现
- 地形挖坑
- Objective-C函数速查实例手册(4)
- netbeans for php 最常用快捷键整理
- Objective-C函数速查实例手册(5)
- MSVCRT.lib(wcrtexew.obj) : error LNK2019: unresolved external symbol wWinMain referenced in function
- VS2010 显示行号
- vs编译时出错:虚拟目录 无法映射
- 第二章:一维随机变量及其分布
- CentOs6.5配置LTMP服务(Tengine,php,mysql)
- 知名网站架构分析
- linux下vi命令大全
- Python 官方文档学习笔记 topic2 Using the Python Interpreter
- JD-GUI在Ubuntu系统下无法使用