Menu

Compile Succesful, Execution terminated

2010-09-14
2012-09-26
  • Sukhitha jayathilake

    I am Following a tutorial on making games with C++ from Llamaworks 2d engine
    which uses Opengl. My Dev cpp version is verions 4.9.9.2. I guess I installed
    all the prerequisites and the headers and plug-ins correctly. But stiil I get
    this on the Compile Log:-

    1. Compiler: Default compiler
    2. Building Makefile: "C:\Users\Prabhath\Documents\Academic\Dev C++ projects\SimpleGame\Makefile.win"
    3. Finding dependencies for file: C:\Users\Prabhath\Documents\Academic\Dev C++ projects\SimpleGame\LW2DAnimatedSprite.cpp
    4. Finding dependencies for file: C:\Users\Prabhath\Documents\Academic\Dev C++ projects\SimpleGame\LW2DAnimation.cpp
    ...
    13. Finding dependencies for file: C:\Users\Prabhath\Documents\Academic\Dev C++ projects\SimpleGame\StationaryBall.cpp
    14. Executing  make...
    15. make.exe -f "C:\Users\Prabhath\Documents\Academic\Dev C++ projects\SimpleGame\Makefile.win" all
    16. g++.exe -D__DEBUG__ -c LW2DAnimatedSprite.cpp -o LW2DAnimatedSprite.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/OpenAL-0.099-mingw/include"  -I"C:/Dev-Cpp/LlamaWorks2D"    -ansi -traditional-cpp -g3
    
    17. g++.exe -D__DEBUG__ -c LW2DAnimation.cpp -o LW2DAnimation.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/OpenAL-0.099-mingw/include"  -I"C:/Dev-Cpp/LlamaWorks2D"    -ansi -traditional-cpp -g3
    ...
    
    28. g++.exe -D__DEBUG__ LW2DAnimatedSprite.o LW2DAnimation.o LW2DApp.o LW2DBMPFile.o LW2DError.o LW2DGame.o LW2DLevel.o LW2DSound.o LW2DSprite.o LW2DTexture.o StationaryBall.o  -o "Simplegame.exe" -L"C:/Dev-Cpp/lib" C:/Dev-Cpp/lib/libopengl32.a -mwindows ../../../../../../Dev-Cpp/lib/ALut.a ../../../../../../Dev-Cpp/lib/libOpenAL32.a ../../../../../../Dev-Cpp/lib/ALu.a ../../../../../../Dev-Cpp/lib/ALc.a ../../../../../../Dev-Cpp/lib/libwinmm.a ../../../../../../Dev-Cpp/lib/libopengl32.a  -g3
    
    29. Execution terminated
    30. Compilation successful
    

    The code should build up a simple window where a ball should bounce around.
    But no window appears
    I've searched throughout the internet for possible solutions. Some say to
    change the IDE from DevC++ to something else. But that's easier said than done
    for a newbie like me coz of the setting up details. I need a definite solution
    and what causes this. Please help!

     
  • fred finkleberger

    i recently downloaded the same version and compiled/linked/ran the bouncing
    ball program right at the start (i think its an example project). i'm new to
    dev-c++ but not new to programming. line 30 says compilation successful which
    leads me to believe that an attempt link was never performed. try the
    compile/link/run process. if that's barking up the wrong tree, search for the
    directory where the exe is dropped. Is the executable there? can you run it
    manually? if so, look for dev-c+ config or project directories to tell the ide
    where to find the exe. make sure you link the project.

     
  • fred finkleberger

    i just got dev-c++ for another pc of mine and i have the same problem on that
    pc. the exe is dropped in the directory i expected and it runs fine when i
    start it manually..but the ide / dev-c++ says the project was never compiled
    presumably because it doesn't know where the exe is or can't find it. i
    updated the 'directories' to tell the ide where to find the exe but nothing
    has resolved the problem YET. i'll continue to work this and let u know what
    it find out. again.. you can run the exe yourself manually if you know where
    the compiler dropped it (default is usually the directory where the *.dev
    project file is or the source files are).

     
  • DARC

    DARC - 2011-06-14

    In the project opions are you using a working directory, if so try deleting
    that path.

     

Log in to post a comment.