LNK2019错误和LNK1120错误帮助吗? [英] LNK2019 error and LNK1120 error help?

查看:103
本文介绍了LNK2019错误和LNK1120错误帮助吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想问你这个错误;


我使用的是Visual Studio 2008,直到今天我都没有遇到任何问题.但是现在我遇到了这些错误.我尝试通过简单的代码向您解释;
我有一个简单的代码,如您在下面看到的,不幸的是,或者我该怎么解释呢,我不知道我真的收到了这些错误......;

#include< stdio.h>
#include< conio.h>
#include< iostream>
#include< stdlib.h>



int main()
{
字符x =''c'';
printf("\ n%c",x);
返回0;
}

< pre lang ="vb">错误1错误LNK2019:函数___tmainCRTStartup MSVCRTD.lib
中引用的未解析的外部符号_WinMain @ 16 错误2致命错误LNK1120:1个未解决的外部组件C:\ Users \ packard bell \ Desktop \ Bug&#252; n \ Bitirme \Kasım\5.Hafta-7Kasım\ iyelik \ iyelik \ Debug \ .iyelik.exe 1</pre> ;

或者如果我更改并这样写;

< pre lang ="xml"> #include& lt; stdio.h& gt;
#include& lt; conio.h& gt;
#include& lt; iostream& gt;
#include& lt; stdlib.h& gt;

int main()
{

printf(\ nSeckin);
返回0;
}</pre>

我也有同样的错误??? :S

我正在等待您针对这些基本代码的答案和解决方案....

最好的问候,

Hi all,I want to ask you that error;


I''M using Visual studio 2008 and I was using it without anyproblem till today.But now I have these error.I try to explain you by the simple code;
I have simple code as you see below and unfortunately or how can I explain it i dont know really I get these errors......;

#include <stdio.h>
#include <conio.h>
#include <iostream>
#include <stdlib.h>



int main()
{
char x=''c'';
printf("\n %c",x);
return 0;
}

<pre lang="vb">Error 1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib
Error 2 fatal error LNK1120: 1 unresolved externals C:\Users\packard bell\Desktop\Bug&#252;n\Bitirme\Kasım\5.Hafta-7Kasım\iyelik\iyelik\Debug\.iyelik.exe 1</pre>

or if I change and write it like that;

<pre lang="xml">#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;

int main()
{

printf(\nSeckin);
return 0;
}</pre>

I have also get same errors??? :S

I''m waiting your answers and solutions for these basic code....

Best Regards,

推荐答案

请参见 ^ ].
:)
See here[^].
:)


这篇关于LNK2019错误和LNK1120错误帮助吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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