这是什么?我能做什么? [英] what is this? what can i do?

查看:79
本文介绍了这是什么?我能做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

警告LNK4067:模糊的切入点;选择''mainCRTStartup''

warning LNK4067: ambiguous entry point; selected ''mainCRTStartup''

推荐答案

这里有两件事之一。



1您的代码中有一个名为mainCRTStartup的函数,它与CRuntime / Clibrary中的函数冲突。这个函数是你的程序真正开始执行的入口点,在main之前。



2你更有可能链接到C库的2个不同副本例如LIBCMTD和MSVCRT80,一个静态和一个动态。如果是这种情况,您应该收到很多其他警告和错误,并提供有关错误的线索。



如果您需要进一步的帮助,您将会可能需要提供更多详细信息。
One of two things is going on here.

1 You have a function in your code called mainCRTStartup which is clashing with the one from the CRuntime/Clibrary. This function is the entry point where your program really starts executing, way before main.

2 Much more likely you''re linking to 2 different copies of the C Library e.g. LIBCMTD and MSVCRT80, one static and one dynamic. If this is the case you should be getting lots of other warnings and errors as well giving clues as to what is wrong.

If you need further help you''ll probably have to give more details.


当您尝试构建应用程序(通常是.EXE)时会发生这种情况。入口点是指操作系统在加载应用程序时启动应用程序的主要功能。它以几种不同的方式表示,并且在某些情况下,多于一个函数满足作为入口点的标准。对于Microsoft系统,此处描述: http://msdn.microsoft .com / zh-CN / library / f9t8842e%28v = vs.110%29.aspx [ ^ ]。



你有你的项目;您可以自己查看可以定义冗余入口点的位置。机会是,它发生在你得到某人的代码并在没有完全理解的情况下修改它之后。这是警告,而不是错误,但您应该在没有任何警告的情况下工作。在这种情况下,函数 mainCRTStartup 可能不是你想要使用的。



参见:

http:/ /en.wikipedia.org/wiki/Main_function [ ^ ]。



-SA
It happens when you try to build an application (normally, .EXE). Entry point means your "main" function used by OS to start your application when it is loaded. It is indicated in few different ways, and, in some situations, more then one functions satisfy the criteria for being an entry point. For Microsoft systems, it is described here: http://msdn.microsoft.com/en-us/library/f9t8842e%28v=vs.110%29.aspx[^].

You have your project; see by yourself where you could define a redundant entry point. Chances are, it happens after you got someone''s code and modified it without full understanding. This is warning, not error, but you should work without any warnings. In this very case, the function mainCRTStartup is likely not what you meant to use.

See also:
http://en.wikipedia.org/wiki/Main_function[^].

—SA


这篇关于这是什么?我能做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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