|
|
|
Re: Eclipse Crashes on Startup [message #662683 is a reply to message #662665] |
Thu, 31 March 2011 10:33  |
Eclipse User |
|
|
|
At very least, you should ask this question in the eclipse cdt forum as
per the sticky posts at the top of this forum.
On 2011.03.31 7:27, diego wrote:
> I thought so too so I double and triple checked everything, even
> uninstalling the 32 bit version of JRE. Still no dice.
>
> Since making my initial post Eclipse would randomly work. Some days it
> behaves, some days it crashes every five minutes. Recently (today), I
> made a change to one of my source files that seems to have thrown the
> workspace into a tizzy, because it's back to crashing as soon as I load
> up the IDE.
>
> Funny enough removing the project from the workspace lets it work ok.
> The offending code?
>
> /*
> * WinLuaTest.cpp
> *
> * Created on: Mar 30, 2011
> * Author: dbenavid
> */
>
> extern "C"
> {
> #include "lua.h"
> #include "lualib.h"
> #include "lauxlib.h"
> }
>
> #include <iostream>
>
> void fromC()
> {
> std::cout << "This is from C." << std::endl;
> }
>
> int main()
> {
> lua_State *L = lua_open();
> luaL_openlibs(L);
> luaL_dofile(L,"foo.lua");
> printf("\nI am done with Lua in C++.\n");
> lua_close(L);
> return 0;
> }
>
>
> The entire project was ok before adding in
> #include <iostream>
>
> void fromC()
> {
> std::cout << "This is from C." << std::endl;
> }
>
>
> I'm not sure why the entire IDE would crash in this scenario. Even if
> there were code errors or it was unable to perform its internal
> calculations for dependencies and the like there's not need for such a
> spectacular crash :(
|
|
|
Powered by
FUDForum. Page generated in 0.25276 seconds