Visual C ++ 6.0二 [英] Visual C++6.0 Two

查看:69
本文介绍了Visual C ++ 6.0二的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Win 10下运行Visual C ++ 6.0。在.cpp中打开源代码,编译时没有错误,当我链接时,获取错误的外部例程_main。不知道它正在寻找什么来构建工作空间,但为什么它要寻找名为_main的外部
例程?我有opengl的库:gl\gl.h,gl\glu.h,gl \ glaux.h但这些不应该从我的角度导致错误。帮助将不胜感激。谢谢,Sid Kraft

Running Visual C++6.0 under Win 10. Opened the source code in .cpp, compiled with no errors, when I linked, get error for missing external routine _main. Not sure what it is looking for to build the work space but why is it looking for external routine called _main? I do have libraries for opengl: gl\gl.h, gl\glu.h, gl\glaux.h but these should not be causing the error from my perspective. Help will be appreciated. Thanks, Sid Kraft

推荐答案

听起来VC ++ 6.0认为它正在构建一个控制台应用程序,而不是Windows GUI应用程序。  Windows GUI应用程序的入口点是WinMain(或wWinMain)。如果可能,更改VC ++ 6.0项目设置以构建Windows
应用程序。 自从我使用VC ++ 6.0以来已经很长时间了,我不记得它是否支持将项目从控制台应用程序更改为Windows GUI应用程序。 您可能需要将工作区/项目重新创建为Windows
应用程序。


It sounds like VC++ 6.0 thinks it is building a console application, not a Windows GUI application.  The entry point for a Windows GUI application would be WinMain (or wWinMain). Change the VC++ 6.0 project settings to build a Windows application, if possible.  It's been a long time since I used VC++ 6.0 and I don't remember if it supports changing a project from a console application to a Windows GUI app.  You may need to recreate the workspace/project to be a Windows application.


这篇关于Visual C ++ 6.0二的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆