![]() ![]() sample If you get following screen then my job is done. Initgraph(&gd,&gm,NULL) Here is a sample program to test it's working or not. Initgraph(&gd,&gm,"c: cgi") >In Ubuntu instead of " c: cgi " write NULL ![]() To do that add #include in your C program. Now Ubuntu is ready to run graphics program. DOWNLOAD GRAPHICS.H FILE FOR C INSTALLconfigure sudo make sudo make install sudo cp /usr/local/lib/libgraph.* /usr/lib Right click on it and select "Extract Here". Run the command: sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-devĬopy libgraph-1.0.2.tar.gz to your home folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |