Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: namminhlp on April 09, 2016, 05:27:16 am

Title: The program stop working when initializing Graphic Mode in graphics.h
Post by: namminhlp on April 09, 2016, 05:27:16 am
I do step by step on this link http://www.codeincodeblock.com/2011/09/how-to-setup-winbgim-library-in.html to add "gracphics.h", "winbgim.h" to CodeBlocks but when i run my program :
Code: php
#include <iostream>
#include <graphics.h>
using namespace std;

int main()
{
    initwindow(300,300);
    return 0;
}
a window appears saying that the program has stopped working.What should i do ? please !
Title: Re: The program stop working when initializing Graphic Mode in graphics.h
Post by: oBFusCATed on April 09, 2016, 08:55:24 am
Add more code to make the program do more than init the window and then quit.