帮我解决这个windows错误 [英] help me solve this windows error

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

问题描述

我一直在尝试将SDL安装到visual studio 2013中,并且每次调试它并运行错误时这是我的代码:



i have been trying to install SDL into visual studio 2013 and each time time debug it and run in to an error this is my code:

#include <SDL\SDL.h>


int main(int argc, char** argv[]){

    SDL_Init(SDL_INIT_EVERYTHING);
    return 0;
}





,错误说明:



错误1错误LNK2019:未解析的外部符号_SDL_Init在函数int __cdecl SDL_main(int,char * * * const)中引用(?SDL_main @@ YAHHQAPAPAD @ Z)c:\ Users \antho_000 \documents \ visual studio 2013 \Projects\RPG \RPG \ game.obj RPG



错误2错误LNK2019:未解析的外部符号_main在函数___tmainCRTStartup c:\ Users中引用\\\hoho_000 \documents\visual studio 2013 \Projects\RPG \RPG \ MSVCRTD.lib(crtexe.obj)RPG



错误3错误LNK1120:2个未解析的外部c:\users\antho_000 \documents\visual studio 2013 \Projects\RPG \Debug \ RPG.exe RPG





我无法在我的调试文件夹中找到我的exe文件,请帮助我们 [ ^ ]

推荐答案

看一下这个页面:第0课: Visual Studio设置SDL [ ^ ]。
Have a look at this page: "Lesson 0: Visual Studio Setting Up SDL"[^].


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

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