无法在Eclipse中运行SDL程序,但可以在Windows资源管理器中执行此操作 [英] Unable to run SDL program in Eclipse but able to do so in Windows Explorer

查看:295
本文介绍了无法在Eclipse中运行SDL程序,但可以在Windows资源管理器中执行此操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装并设置了SDL并设法获得一个教程示例来构建(教程代码是从 http://zamma.co.uk/setup-sdl2-eclipse-windows/ )作为Eclipse中的C ++项目。

I have installed and set up SDL and managed to get a tutorial example to build (the tutorial code is from http://zamma.co.uk/setup-sdl2-eclipse-windows/) as a C++ Project in Eclipse.

问题是,当我尝试从Eclipse运行应用程序时,窗口不会出现,或者也许它很快关闭后出现。 Eclipse不会出现任何错误。

The problem is that when I try to run the application from Eclipse, the window doesn't appear, or perhaps it gets closed soon after appearing. Eclipse doesn't appear to show any errors.

当我在Windows资源管理器中打开包含可执行文件的文件夹,并双击该应用程序时,它可以正常工作;

When I open the folder containing the executable in Windows Explorer and double-click on the application, it works; a window appears with "Hello World" as the title and closes after two seconds.

当我从Eclipse运行时,如何显示窗口?

How can I get the window to appear when I run from Eclipse? Any breakpoints I set are ignored by the debugger.

IDE:Eclipse Luna 4.4.1
操作系统:Windows 7 64位

IDE: Eclipse Luna 4.4.1
OS: Windows 7 64-bit

推荐答案

该程序现在在Eclipse中运行,因此解决方案可能是刷新Eclipse并双重检查构建设置和运行配置,以及检查任何操作系统修改这可能会影响软件上运行(感谢所有答复的帮助)。

The program now runs in Eclipse, so the solution may have been to refresh Eclipse and double check Build settings and Run configurations, as well as checking for any OS modifications that may affect the software running on it (thanks to all who replied for the help).

这篇关于无法在Eclipse中运行SDL程序,但可以在Windows资源管理器中执行此操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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