Thread: How to add graphics file to dev ++

  1. #1
    Registered User
    Join Date
    Oct 2017
    Posts
    37

    How to add graphics file to dev ++

    Hello,
    How to add graphics file to c++
    i have done it is showing this error
    Attached Images Attached Images How  to add graphics file to dev ++-untitled-jpg 

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,541
    Do you know what 'redefinition' means?

    It means you've got the same same TWICE.

    From the look of things, it looks like your second 'right' should be 'top'.

    To be honest, it might be better if you learnt a few basics of programming before tackling complex things like graphics, if this is the kind of error message which leaves you confused.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    3,688
    The error is from code the OP is trying to use; he did not write it.

    Link to an git repo of mine; that I forked from someone else. I likely have most of the mingw GCC [build] errors fixed in it.
    Note: I never really used the library; but, I got tired of all the question I read about people trying to use the library.
    I have no idea why people teach this 20+ year old API using an 12 year old emulation library; but, it is asked about a lot.
    GitHub - stahta01/windows-games: Windows games someone wrote a long time ago.
    Link directly to the WinBGIm library that I am 80% certain the OP is trying to use.
    windows-games/WinBGIm at master * stahta01/windows-games * GitHub

    Tim S.
    Last edited by stahta01; 11-04-2017 at 09:12 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    3,688
    Quote Originally Posted by Salem View Post
    From the look of things, it looks like your second 'right' should be 'top'.
    I guessed the first 'right' should be 'top'.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by stahta01 View Post
    I guessed the first 'right' should be 'top'.

    Tim S.
    the second right could be top too, and it'd still work. the thing is all he got a do is change one of them to top.

  6. #6
    Registered User
    Join Date
    Oct 2017
    Posts
    37
    hello how to make square in c++ then please help me

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,541
    This has to be a troll.
    There's no effort, or demonstration of learning.
    Just gimme gimme gimme.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Informer -Adrian's Avatar
    Join Date
    Jan 2013
    Posts
    817
    Either way, no more feeding!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Intro for graphics header file in c
    By balaKannan in forum C Programming
    Replies: 2
    Last Post: 12-15-2010, 01:12 PM
  2. Do you have a Graphics.H file????
    By Marrah_janine in forum C Programming
    Replies: 4
    Last Post: 09-19-2007, 12:05 PM
  3. Graphics header file
    By QuincyEQ in forum C++ Programming
    Replies: 1
    Last Post: 05-04-2002, 02:38 PM
  4. How to create Graphics EXE File in C:
    By Visu A in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 03-13-2002, 10:26 PM
  5. Graphics header file problem
    By Senkoma in forum C++ Programming
    Replies: 1
    Last Post: 09-04-2001, 05:26 PM

Tags for this Thread